![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Force ImageHistogram to respect a specific image bit depth
![](/sites/default/files/styles/thumbnail/public/jjweimer/profile-images/2018-12/meimage.jpg?itok=gNUlNM01)
This is a follow up to the posting here
https://www.wavemetrics.com/forum/general/why-does-imagehistogram-not-r…
I have images captured at 12 bit. I would like to force the histogram scale to respect this specific bit depth. In this regard, I would appreciate expanding the /I option as below.
ImageHistogram --> generate image histogram over an 8 bit scale
ImageHistogram/I --> generate image histogram over a 16 bit scale
ImageHistogram/I=N --> generate image histogram over an N bit scale
I realize that I can accomplish what I want with the Histogram/B={0,1,2^12} option. It seems a logical step to allow the direct method in ImageHistogram, especially since digital image bit depths are typically discreet 2^N powers. Also, I have to work around not having direct access to the /ROI and /P flags in the Histogram operation.