Author Topic: Inconsistent HDR composition detected  (Read 5916 times)

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Inconsistent HDR composition detected
« on: 2013 January 13 01:38:46 »
Hi all,

When I use the HDRComposition tool I get the next message:

Quote
* HDR image component 1 of 3
Reading TIFF: 32-bit floating point, 3 channel(s), 6080x4044 pixels, chunky: 100%

* Initial quantization:
q0 = 2.59236e+006 (21.31 bits)
q1 = 1.08073e+006 (20.04 bits)
q2 = 1.85786e+006 (20.83 bits)

* Integrating HDR image component 2 of 3
Reading TIFF: 32-bit floating point, 3 channel(s), 6080x4044 pixels, chunky: 100%
Building HDR composition mask: 100%
Fitting linear HDR image: |
*** Error: Inconsistent HDR composition detected (bad linear fit, channel 0)

I loaded 32/bit color TIF images, just made in PI 1.7 to do a ´fake´ HDR.

Is there something I can do without degrading my input images?
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Inconsistent HDR composition detected
« Reply #1 on: 2013 January 13 02:33:58 »
How did you process the images before this? Are they still linear? Are they calibrated?
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Re: Inconsistent HDR composition detected
« Reply #2 on: 2013 January 13 06:48:31 »
I post-processed Nikon NEF files in DeepSkyStacker with calibration of darks, flats and bias frames.

The output is a 32-bit floating point TIF image.

I then used a HistogramTransformation in the mid tones of 0.4 for 12 times and saved each step as a 32-bit floating point TIF.

I did that before in 1.6 and that worked.
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Inconsistent HDR composition detected
« Reply #3 on: 2013 January 13 08:07:53 »
You need to do HDRComposition before the HistogramTransform. In particular the midtones change is non-linear. Most likely this is the reason why you have the problems.
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Re: Inconsistent HDR composition detected
« Reply #4 on: 2013 January 13 21:27:36 »
This might sound silly, but how do I stretch an image in a linear way?
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Inconsistent HDR composition detected
« Reply #5 on: 2013 January 14 00:09:20 »
1. Best is not to stretch it at all... Use STF to make something visible on the screen, and delay any actual stretching to afte HDRComposition.
2. You can do it in PixelMath, using a formula such as 20*$T
3. slightly unsave: Move only the highlights slider in histogram transform
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Re: Inconsistent HDR composition detected
« Reply #6 on: 2013 January 20 00:17:31 »
Hi Georg,

I got it working now, see this image:

http://www.flickr.com/photos/14721988@N02/8395284913/

The workflow is under the image.

-Eelko.
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Inconsistent HDR composition detected
« Reply #7 on: 2013 January 20 02:10:04 »
Hi Georg,

I got it working now, see this image:

http://www.flickr.com/photos/14721988@N02/8395284913/

The workflow is under the image.

-Eelko.

You keep stretching the images before HDRComposition. You can not do that if you want a good result from HDRComposition. It is designed to work with lineal images and applying a HT with a midtones value other that 0.5 destroys the linearity.

The workflow must be:
  • Calibration of the subs with at least darks and flats. This is MANDATORY.
  • Alignment of all the subs against the same reference.
  • Integrate all the images for each exposure.
  • Apply HDRComposition.
  • Now you can process the image as you like.
Before HDRComposition you can apply transformations that don't affect the linearity, but I don't recommend that since they can produce artifacts after HDRComposition.

Also in HDR images it is usually necessary to apply a HDRMultiscaleTransform step to compress the dynamic range.

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Re: Inconsistent HDR composition detected
« Reply #8 on: 2013 January 20 05:16:01 »
Hi Andres,

Quote
The workflow must be:
  • Calibration of the subs with at least darks and flats. This is MANDATORY.
  • Alignment of all the subs against the same reference.
  • Integrate all the images for each exposure.
  • Apply HDRComposition.

Now you can process the image as you like.

As you can see, I did calibrate the images I used, I just had the one image. Alignment is done in DeepSkyStacker and I did not have time to get more exposures.

All in all, this is the best I can do with this image.

-Eelko.
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Inconsistent HDR composition detected
« Reply #9 on: 2013 January 20 05:23:39 »

As you can see, I did calibrate the images I used, I just had the one image. Alignment is done in DeepSkyStacker and I did not have time to get more exposures.
I don't understand. What does it mean that you have only one image? For HDRcomposition you must have at least two images of different exposition time.

Quote
All in all, this is the best I can do with this image.
You stretched 12 times the image before HDRComposition. You shouldn't do that.

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Re: Inconsistent HDR composition detected
« Reply #10 on: 2013 January 20 13:18:55 »
Hi Andres,

I stated in the first post that I wanted to do a 'fake' HDR.
The only image I have is a stacked image from 18 x 4m41s long.

If I had had more scope time, I would have done it differently.

-Eelko.
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Inconsistent HDR composition detected
« Reply #11 on: 2013 January 20 15:05:18 »
since PI's HDR tool requires linear images, i think you'd be better off using enfuse. enfuse is actually for terrestrial images so it can deal with nonlinear data. i have used that in the past on M42 in exactly the way you are describing. worked pretty well.

Offline EelkoGielis

  • Newcomer
  • Posts: 16
    • Flickr Astro set
Re: Inconsistent HDR composition detected
« Reply #12 on: 2013 January 21 12:34:02 »
Thanks Rob,

I'll give that a try somewhere this week.
Celestron 9,25" Edge HD, SkyWatcher NEQ6Pro, Lacerta MGEN on F500mm f90mm APO