Author Topic: Crashing when applying 24-bit Auto-STF after Drizzle  (Read 5150 times)

Offline naavis

  • Member
  • *
  • Posts: 66
Hi!

I'm able to crash PixInsight after running the DrizzleIntegration process. After running the process, I close the weighting image, then auto-STF the result file by pressing Ctrl+A and then enabe the 24-bit lookup table for STF by pressing the button on the toolbar. Then PI crashes. I'm running Windows 8.1 64-bit. Also, saturated parts of the images (some stars and galaxy cores) turn black in the drizzled image.
Samuli Vuorinen

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #1 on: 2014 June 03 08:01:47 »
Hi,

I can't reproduce this problem. Could you upload the drizzled image somewhere, so I can try to understand why this happens?

Quote
saturated parts of the images (some stars and galaxy cores) turn black in the drizzled image.

That happens when "clip high range" is enabled in ImageIntegration. When a saturated pixel gets rejected in all input frames, drizzle sets it to zero in the final image. This does not happen with ImageIntegration because this tool sets 100% rejected pixels to the median value of the stack. However, DrizzleIntegration cannot do that because it integrates one image at a time and hence does not have all the data available at once.

If you disable the clip high range option, there should be no black pixels due to rejection.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline naavis

  • Member
  • *
  • Posts: 66
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #2 on: 2014 June 03 10:04:45 »
I sent you a link to the images via private message.

If Pixel Rejection is completely disabled both in ImageIntegration and DrizzleIntegration, I'm also getting those black cores after drizzling.
« Last Edit: 2014 June 03 13:30:11 by naavis »
Samuli Vuorinen

Offline naavis

  • Member
  • *
  • Posts: 66
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #3 on: 2014 June 03 13:30:40 »
Oh, I sent you the original images. I can also send the drizzled version ASAP.
Samuli Vuorinen

Offline naavis

  • Member
  • *
  • Posts: 66
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #4 on: 2014 June 03 13:37:13 »
The plot thickens. I attached a screenshot of what the drizzled image looks like with pixel rejection disabled. Now, if I save the image and open it again, the black striping near the saturated areas is gone. The drizzled image can be found here: https://dl.dropboxusercontent.com/u/17224129/m51_drizzled.fit

Also, if I save and reopen the image before applying auto-STF and the 24-bit LUT, PixInsight does not crash. It only crashes if I try doing the 24-bit STF when those stripes are visible, right after drizzling.
Samuli Vuorinen

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #5 on: 2014 June 03 15:23:35 »
Could you check the pixel values at those locations? Are they in the normalized range? Are there any negative, greater than 1.0 or NaN values?
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline naavis

  • Member
  • *
  • Posts: 66
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #6 on: 2014 June 03 22:31:06 »
Could you check the pixel values at those locations? Are they in the normalized range? Are there any negative, greater than 1.0 or NaN values?

The values are slightly above 1. There are values such as 1.003, 1.0001, 1.005 etc. If I save and reopen the file, the same pixels are only around 0.92.
Samuli Vuorinen

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #7 on: 2014 June 04 00:43:20 »
This is a bug in the DrizzleIntegration process: of course there should be no pixels with values larger than one. I can reproduce it with the data that naavis has kindly uploaded for me, so I'm working to find and fix the problem right now.

In the meanwhile, a workaround is applying PixelMath with default parameters and $T as the RGB/K expression. This will truncate all values to [0,1].

Sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #8 on: 2014 June 04 01:15:28 »
Update: the bug is now fixed. I'll release an update as soon as possible. Thank you for your help.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline naavis

  • Member
  • *
  • Posts: 66
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #9 on: 2014 June 04 01:48:11 »
Awesome, thanks!
Samuli Vuorinen

Offline Igor

  • Newcomer
  • Posts: 18
Re: Crashing when applying 24-bit Auto-STF after Drizzle
« Reply #10 on: 2019 November 04 00:57:40 »
Hello Juan,

I can reproduce the same issue and crashing the last release of PixInsight with an image with pixel values slightly below 0. Negative values are not an issue with ImageIntegration which rescales the final image I guess.

Regards

Igor