OpenCV Single Channel Pixel Value Number Colour [closed]
Hey guys, do you know how opencv decides on the colour of the pixel value number as seen in the attached image? This is a max zoomed in portion of the red channel in an rgb image in opencv imshow. I'm interested in how they decide to colour the number white/grey/black.
For example, in the image, pixels with values 128 and above are black whereas below 128, it's closer to white.
I've searched for any answers to this but found none.
please put images here, not on an external drive, thank you.
i either don't understand it, or it's trivially: if the patch brightness to visualize is < 128, use white to plot numbers, else black ? or even (255 - Y) for maximim contrast ?
Apologies for adding an external image link. I think you are right with regards to it being trivially, to visualise < 128, use white dot else black. I've looked at some of the other channels and it seems that's the answer. Thank you.
which method are you using to display the pixel values?