Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我需要将我的捕获帧 (Mat) 转换为 YCBCR 并分离通道,我该怎么办?
我的代码:
frame_capturado = cvQueryFrame( capture ); cvtColor(frame_capturado,frameycbcr,CV_BGR2YCrCb);
现在...?
具体来说我需要cr频道
现在 ...
Mat ycrcb[3]; split(frameycbcr, ycrcb); // do work Mat ycrcb_merged; merge(ycrcb,3, ycrcb_merged);
(请使用 VideoCapture 而不是 CvCapture,不要混合使用旧的 c-api 和较新的 c++ api。)