Access to each separate channel in OpenCV

后端 未结 5 1077
执念已碎
执念已碎 2021-01-01 10:06

I have an image with 3 channels (img) and another one with a single channel (ch1).

    Mat img(5,5,CV_64FC3);
    Mat ch1 (5,5,CV_64FC1);

I

5条回答
  •  攒了一身酷
    2021-01-01 10:57

    There is a function called cvMixChannels. You'll need to see implementation in the source code, but I bet it is well optimized.

提交回复
热议问题