How to detect whether a video is BGR or RGB?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to detect whether a video is BGR or RGB?

Gabriele-2
Is there a way to do that on OpenCV?

Thanks,
G

Reply | Threaded
Open this post in threaded view
|

Re: How to detect whether a video is BGR or RGB?

Juan D'Amato
This way

Ask for property "ChannelSeq" in the iplImage :
   iplImg->ChannelSeq == 'BGR'


--
Ing. Juan P.D'Amato
Instituto PLADEMA  - TANDIL
Web Site : www.pladema.net/~jpdamato/


[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|

Re: How to detect whether a video is BGR or RGB?

Gabriele-2
Right! Thanks a lot!

--- In [hidden email], "Juan D'Amato" <juan.damato@...> wrote:

>
> This way
>
> Ask for property "ChannelSeq" in the iplImage :
>    iplImg->ChannelSeq == 'BGR'
>
>
> --
> Ing. Juan P.D'Amato
> Instituto PLADEMA  - TANDIL
> Web Site : www.pladema.net/~jpdamato/
>
>
> [Non-text portions of this message have been removed]
>