0
点赞
收藏
分享

微信扫一扫

[opencv]三通道图像反色

龙毓七七 2022-05-29 阅读 49

 

1.用纯白图像-原图

Mat img = imread(path);
imshow("src", img);
waitKey();

Mat white = cv::Mat(250,250,CV_8UC3,Scalar(255,255,255));
imshow("white", white);
waitKey();

Mat dst = white - img;
imshow("dst", dst);
waitKey();

[opencv]三通道图像反色_scala

 

Talk is cheap. Show me the code

举报

相关推荐

0 条评论