Convert RGB/A Mat to YCbCr Y Plane and CbCr Plane

asked 2019-09-26 16:42:39 -0500

I'm aware of the function cv::cvtColorTwoPlane (InputArray src1, InputArray src2, OutputArray dst, int code) for going from the separate Y and CbCr Mat's to an RGB Mat, but what if I have an RGB Mat and want to write to the Y and CbCr Mat's. Is there a function for this? I couldn't find anything in the opencv source code and documention. If there isn't a function is there another efficient way to do this?

edit retag flag offensive close merge delete

Comments

what do you have, exactly ?

cvtColorTwoPlane can only be used for YUV420, see docs, please

berak gravatar imageberak ( 2019-09-27 00:37:57 -0500 )edit