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);
(そして、CvCapture の代わりに VideoCapture を使用してください。古い c-api と新しい c++ api を混在させないでください。)