Author Topic: Processing Images in an Image Container  (Read 503 times)

Offline bulrichl

  • PixInsight Guru
  • ****
  • Posts: 524
Processing Images in an Image Container
« on: 2019 July 14 01:26:47 »
I wanted to process a bunch of images (sample format: 16-bit unsigned Integer) with PixelMath and force the output images to the sample format 32-bit IEEE 754 Floating point. To achieve such a sample format conversion in PixelMath with a single image, I would have to set Destination/Create new image, Sample format: 32-bit IEEE 754 Floating point. However, when I do this and process an Image Container, the images that I want are created and displayed, but the unchanged images are saved. On the other hand, ImageContainer does not have output hints where I can set the output sample format.

So how can I achieve what I wanted to?

Bernd

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Processing Images in an Image Container
« Reply #1 on: 2019 July 30 00:52:51 »
Hi Bernd,

Create a ProcessContainer with two process instances: a first one of SampleFormatConversion to force conversion to 32-bit floating point format, and a second one with your PixelMath process to replace the target image. Then execute the ProcessContainer for your ImageContainer.

Input/output hints sections for ImageContainer are in the to-do list.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline bulrichl

  • PixInsight Guru
  • ****
  • Posts: 524
Re: Processing Images in an Image Container
« Reply #2 on: 2019 July 30 03:05:45 »
Thank you, Juan, that worked. Sometimes I don't see the wood for the trees. Up to know I didn't know the process SampleFormatConversion, only the corresponding script.

Bernd