opencv4.0 C++通道分离

#include<opencv2/opencv.hpp>
#include
using namespace cv;
using namespace std;
int main(int argc, char**argv)
{
Mat src = imread(“F:/1-Program/Test/Project3/1/img.jpg”);
Mat aChannels[3];
split(src, aChannels);
imshow(“B”, aChannels[0]);
imshow(“G”, aChannels[1]);
imshow(“R”, aChannels[2]);
waitKey(0);
destroyAllWindows;
return 0;
}

发布了2 篇原创文章 · 获赞 0 · 访问量 107

猜你喜欢

转载自blog.csdn.net/weixin_45748354/article/details/104506576
今日推荐