Author Topic: Looking for information on pjsr RGBWorkingSpace structure  (Read 5113 times)

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
I'm looking to pull the RGB Working space information from an image, specifically the luminance weights.  Does anyone know what that structure looks like or how to find that sort of information in general?

Regards,
David

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: Looking for information on pjsr RGBWorkingSpace structure
« Reply #1 on: 2015 August 17 23:57:46 »
Make sure the image is active and click on the check mark on the left hand side of the process window.
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
Re: Looking for information on pjsr RGBWorkingSpace structure
« Reply #2 on: 2015 August 18 05:34:39 »
Thanks Geoff.  Reading back through my post I don't think it was clear what I was looking for.  I am looking to decode the rgbWorkingSpace structure in a pjsr script.  I've got an ImageWindow record and that contains a pointer to an rgbWorkingSpace structure, but there's no documentation that I can find on what elements are part of that.  I dug through the PCL header files and found an rgbWorkingSpace object, but the elements I'm looking for don't seem to match up.  It indicates I would use something like imageWindow.rgbWorkingSpace.M[0..2], but that doesn't seem to work.

Regards,
David

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Looking for information on pjsr RGBWorkingSpace structure
« Reply #3 on: 2015 August 18 07:26:18 »
David,

Check Object Explorer in build 1171 Win, it has an entry for RGBColorSystem with properties and methods listed.

Mike

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
Re: Looking for information on pjsr RGBWorkingSpace structure
« Reply #4 on: 2015 August 18 09:07:48 »
Thanks Mike.  I must have looked right past it a dozen times and it never registered somehow.  :-\  Probably working on it too late.

Regards,
David

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Looking for information on pjsr RGBWorkingSpace structure
« Reply #5 on: 2015 August 19 10:46:27 »
The RGBColorSystem object is a JavaScript implementation of the pcl::RGBColorSystem C++ class, which is reasonably well documented:

http://pixinsight.com/developer/pcl/doc/html/classpcl_1_1RGBColorSystem.html

You can use the above C++ documentation to work with the JavaScript version. Hopefully, between this Winter and Q1-2016 I'll find the time to write a first version of the PJSR reference documentation (basically a translation of the existing PCL documentation).
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
Re: Looking for information on pjsr RGBWorkingSpace structure
« Reply #6 on: 2015 August 19 11:20:11 »
That would be fantastic Juan!  I did figure out how to pull the information I needed, but additional documentation for the javascript API would be very welcome.

Regards,
David