Ask Your Question

Cristian's profile - activity

2020-03-19 20:29:54 -0600 received badge  Popular Question (source)
2017-03-10 08:39:23 -0600 commented answer How does imshow know the color map of the image?

Now I understand it perfectly. Thanks again!

2017-03-10 05:01:26 -0600 received badge  Scholar (source)
2017-03-10 04:49:45 -0600 commented answer How does imshow know the color map of the image?

But if you transform to gray an image, it gets only one channel (the gray level). That is how opencv knows it is in gray and not BGR?

Thank you

2017-03-10 04:21:57 -0600 asked a question 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.