Hey Dietmar,
Thanks for the remedial histogram lession.
I think I was confusing the input/output mapping line with the tally-up pixels at all the brightness levels line.
I for sure wouldn't mind trying out the reader app to then make some graphs in a spreadsheet. Maybe try to get an idea of what is happening with some sample astro photos and also perhaps synthetic images.
I still need to get out a yellow pad to try to sketch out the whole tranches and expanding/compressing dynamic ranges idea.
I am perhaps surprised too that your one "zoom" chart has some angled bends. Even "only" 4096 slots seems like a lot. But, if you can see those without being very deeply zoomed, that may represent regions of...compression? (hope I didn't get that backwards).
Having 2^16 tranches now is interesting though. The smoother curve seems to follow, yes. But, how do you expand or compress 65536 tranches when that's the number of brightness levels anyway, unless things are being combined? Isn't that 1:1? Or is it because the stacks started out as (usually) 2^32, and ST is able to expand and compress that? But, the save-out is only 2^16 TIFF, and that is what your app will be reading.
Yes I've confused myself even further.
![Confused :?](./images/smilies/icon/confused.gif)
Atmospheric river coming this weekend, so maybe I can get my head around it then.
![Very Happy :D](./images/smilies/icon/biggrin.gif)