Wow Kevin, thanks for the long reply ;). This will be tricky to handle, but I might deal with some common cases.
What is a good upper limit for histogram width? 4096? For 16-bit image I can't have width 2^16 and draw bins 1:1, it is too much obviously. Do you have some big histogram image I can see? The procedure would be something like: Infer min and max values in histogram based on how many bits the channel has per pixel. For 8-bit channel I can have width of histogram 2^8 and draw bins 1:1 or 2^9 and draw 2:1. For 9-bit channel I can have width of histogram 2^9 and draw bins 1:1 or 2^10 and draw 2:1. And so on... But I am not sure how OIIO deals with 9-bit or 10-bit images? This is from the documentation: "Pixel data are 8- 16- or 32-bit int (signed or unsigned), 16- 32- or 64-bit float. NOTHING ELSE. No < 8 bit images, or pixels boundaries that aren’t byte boundaries. Files with < 8 bits will appear to the client as 8-bit unsigned grayscale images." Stefan
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
