I am working within the scikit-image package to analyse medical images.
For that, I want to create binary images and only count the number of white pixels in the images.
I do as follows:
- Create a grayscale image
- Run a threshold on it (skimage.filters.threshold_otsu)
- binary = grayscale > treshold_otsu
What I expect to have as a result is a binary image. If I print the np.array of it, it is encoded in False / True statements. However, I would have expected it to be in 0 (black pixels) and 255 (white pixels) encoded.
With the False - True statements, I cannot be sure which statement stands for white or black. Is there a conventional naming, like white always is True for example?
Does anyone know why I result with the Boolean encoding and not in 0-255 type?
Thank you very much!