How does imshow know the color map of the image?
I'm in Python.
By default, imshow displays the image reading as BGR format. But if you transform the image, for example, to gray, imshow knows how to display it properly.
So I ask a couple questions,
1)How does imshow, looking only at the data of the image, how it must display it (gray, BGR... etc) 2)Is there a way to tell opencv easily that it must read in another format? For example, YUV or whatever.
Thanks, I'm pretty noob.