I read the article on http://opencv.willowgarage.com/wiki/VideoCodecs. I have a question regarding colorspaces in opencv.

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(cmdl->ifile);

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.