Author Topic: StarAlignment transformation matrix  (Read 7489 times)

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
StarAlignment transformation matrix
« on: 2011 February 13 05:54:34 »
This message is directed to Juan: I think that I have an idea for an script and PSJR has most of the tools I need, but not all. It would very interesting if the StarAlignment tool would have a property for getting the transformation matrix after the alignment. Currently it is presented on the console, but I would need it from JS. Is there any possibility to have it in a future version?  ;)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: StarAlignment transformation matrix
« Reply #1 on: 2011 February 15 00:21:24 »
Hi Andrés,

Definitely yes. This is one of the things I'm working on now. Right now a process has parameters. Parameters are read/write properties. In the next version processes will also have read-only properties.

For example, StarAlignment will have several read-only properties. One of them is the 3x3 homography matrix computed in the last execution. Others are the lists of matched stars, for the reference and target images (in view execution mode only), the identifiers of the output registered image views and files, and the properties of the registration model. ImageIntegration will remember all the statistical information that it writes to the console, output files, etc.

This is a relatively small change in PI's object model but will open a big door to scripts.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline zvrastil

  • PixInsight Addict
  • ***
  • Posts: 179
    • Astrophotography
Re: StarAlignment transformation matrix
« Reply #2 on: 2011 February 15 00:50:42 »
Hi Juan,

this interests me. Is it also possible to call StarAlignment process from PCL and obtain the resulting matrix somehow?

thanks, Zbynek

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: StarAlignment transformation matrix
« Reply #3 on: 2011 February 15 01:19:45 »
Definitely yes. This is one of the things I'm working on now. Right now a process has parameters. Parameters are read/write properties. In the next version processes will also have read-only properties.

Thanks Juan.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: StarAlignment transformation matrix
« Reply #4 on: 2011 February 15 02:11:48 »
Hi Zbynek,

Quote
Is it also possible to call StarAlignment process from PCL and obtain the resulting matrix somehow?

Not now. But it is also part of the improvements that I plan to implement during the 1.7 version cycle. This involves interprocess communication for processes, which has not been implemented in PCL.

Interprocess communication is now fully functional for file formats. The pcl::FileFormat class is an abstraction of an installed format in PixInsight. In other words, FileFormat is a high-level bridge to a MetaFileFormat object that has been defined by an installed module. In the same way, there will be a Process class, which will be an abstraction for an installed MetaProcess object. There will be also a ProcessInstance class, which will be the counterpart to the current FileFormatInstance class. As you see, everything is already planned; it's just a matter of putting all the pieces together :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline zvrastil

  • PixInsight Addict
  • ***
  • Posts: 179
    • Astrophotography
Re: StarAlignment transformation matrix
« Reply #5 on: 2011 February 15 03:12:49 »
Thanks Juan. With that in place, it should be for example relatively simple for example to combine star database from StarGenerator tool and StarAlignment tool to implement simple plate solving module (although not blind).

regards, Zbynek

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: StarAlignment transformation matrix
« Reply #6 on: 2011 February 15 03:23:47 »
Thanks Juan. With that in place, it should be for example relatively simple for example to combine star database from StarGenerator tool and StarAlignment tool to implement simple plate solving module (although not blind).

regards, Zbynek
Ja!! You have had the same idea than me.  ;) ;)

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: StarAlignment transformation matrix
« Reply #7 on: 2011 February 15 07:22:04 »
Thanks Juan. With that in place, it should be for example relatively simple for example to combine star database from StarGenerator tool and StarAlignment tool to implement simple plate solving module (although not blind).

regards, Zbynek
Ja!! You have had the same idea than me.  ;) ;)

Wow, that would be cool. The Blind Solver http://pixinsight.com/forum/index.php?topic=1857.0 tends to be a bit resource hungry, and it is difficult to install (C compilation, Linux only, Database download, etc.)!
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)