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!
OpenCV default colorspace
Ven, 21/05/2010 - 02:14