Author Topic: calculating real bit depth / quantization  (Read 1734 times)

Offline alexxw24

  • Newcomer
  • Posts: 7
calculating real bit depth / quantization
« on: 2018 September 25 11:45:03 »
Dear members,

any idea how the real bit depth of a sub frame could be calculated using e.g. pixel math or a self-written script?

In detail, I want to determinate the absolute number of different values used in a mono or RGB subframe (per channel)
1) as strongly believe to not always have to use 32bit floating for saving an image
2) as we have a nice dicussion in our local astro community regarding gain settings.

For example a 16bit image can store 65535 values but there are only 30587 in the subframe.
In the HDR composition process  for example an initial quantization is given out at the console, what's the calculation behind?

Thanks in advance and best regards,
Alex

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: calculating real bit depth / quantization
« Reply #1 on: 2018 September 25 18:02:27 »
Hello Alex,

This can be useful: https://pixinsight.com/forum/index.php?topic=496.0

Best regards,

Enzo.

Offline alexxw24

  • Newcomer
  • Posts: 7
Re: calculating real bit depth / quantization
« Reply #2 on: 2018 September 26 08:30:16 »
Hi Enzo,

this is what I was looking for!

Thanks a lot,
Alex