Author Topic: Extract CIE*L from many images  (Read 2467 times)

Offline cytrinox

  • Newcomer
  • Posts: 3
Extract CIE*L from many images
« on: 2018 May 20 06:44:29 »
Hi,

I have many RGB images and want to extract the L channel from each image to a new file (on disk).
I've added all source images to a ImageContainer instance and dragged the instance icon to a ChannelExtraction instance, where only the L channel is selected.

But in the output folder specified in ImageContainer, there is only a copy of the original image saved. The extracted L images are unnamed files on the current workspace.
How can I redirect the L images to the output folder in ImageContainer?

The same applied to PixelMath if I select "Create new image". Instead of the PixelMath "output", the original source image data is written to the output folder.

The same problem was discussed here without a solution: https://pixinsight.com/forum/index.php?topic=4795.0

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 627
    • Astronomy Pages G.W.
Re: Extract CIE*L from many images
« Reply #1 on: 2018 May 20 14:27:53 »
Hi Cytrinox!
Set in PixelMath in RGB/K the expression   CIEL($T)
and check in Destination  of PixelMath "Replace target image"
and not "Create new Image" !!

This writes all L to your outputfolder.

I have put the PixelMath process into a Processes Container
followed by a "Convert to Grayscale" as the written files will be gray but type RGB...

Screenshot can be found here:
http://www.werbeagentur.org/oldwexi/imagecontainerextract_L.jpg

Hope this helps.

Gerald

Offline cytrinox

  • Newcomer
  • Posts: 3
Re: Extract CIE*L from many images
« Reply #2 on: 2018 May 22 06:03:48 »
Thanks Gerald, the trick with ConvertToGrayscale in a ProcessContainer will do the job.

Thank you!