OpenCV--C++图像像素处理--逻辑运算与二值化一、逻辑运算(and, or, xor, not)二、图像二值化
一、逻辑运算(and, or, xor, not)#include<opencv2/opencv.hpp>#include<iostream>using namespace std;using namespace cv;int main(){ Mat img = imread("colors.jpg"); if (img.empty()) { cout << "读取图片失败&quo