[opencv]三通道图像反色

阅读 55

2022-05-29

 

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)

0 0 举报