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

Offline bulrichl

  • PixInsight Old Hand
  • ****
  • Posts: 421
    • View Profile
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: 6831
    • View Profile
    • 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 Old Hand
  • ****
  • Posts: 421
    • View Profile
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