I’m seeing a weird behavior when checking the histogram of a binary image, which I generated by color thresholding an RGB image in Fiji. I was wondering if I encountered a bug?
Here are the steps to reproduce my case:
Open an RGB image, e.g. Clown.jpg from the samples.
Run Color Threshold… in the HSB space and adjust values to H:0-4, S:0-255, B:114-255, all Pass, check Dark background.
Run “Make Binary” or “Convert to Mask”. This generates an 8-bit binary image with value 0 for the black background pixels and 255 for the white foreground pixels.
Now, if I check the histogram of this binary image, I see min=255, max=255. Shouldn’t the min=0, since there are lots of black background pixels (value=0) in the binary image?