OpenCV default colorspace

OpenCV default colorspace

Bild des Benutzers lucvosters
Hi All,

I have an urgent question regarding cvQueryFrame(). I couldn't find the answer anywhere. So I hope someone here can help.

If I read a video which is encoded in e.g. YUV4:2:2 color format in OpenCV by:

cap = cvCreateFileCapture("input.avi");
IplImage *in = cvQueryFrame(cap);

Will in then always be in the BGR colorspace? Or will in be in the YUV4:4:4 colorspace?

Will OpenCV in cvQueryFrame() automatically convert any video of any colorspace into the BGR colorspace by default? Or if the encoded
video is YUV, will the colorspace after cvQueryFrame() than also be YUV?

Thanks in advance!
2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Thomas Willhalm (Intel)

Have you tried the discussion forum on OpenCV? They should be able to help you.

Melden Sie sich an, um einen Kommentar zu hinterlassen.