OpenCV default colorspace

OpenCV default colorspace

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!
publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya