detect color space with openCV

前端 未结 5 448
予麋鹿
予麋鹿 2020-12-08 02:00

how can I see the color space of my image with openCV ?

I would like to be sure it is RGB, before to convert to another one using cvCvtColor() function

thank

5条回答
  •  無奈伤痛
    2020-12-08 02:47

    I basically split the channels and display each one to figure out the color space of the image I'm using. It may not be the best way, but it works for me.

    For detailed explanation, you can refer the below link.

    https://dryrungarage.wordpress.com/2018/03/11/image-processing-basics/

提交回复
热议问题