detect color space with openCV

前端 未结 5 449
予麋鹿
予麋鹿 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:59

    The IplImage struct has a field named colorModel consisting of 4 chars. Unfortunately, OpenCV ignores this field. But you can use this field to keep track of different color models.

提交回复
热议问题