一、编程环境:
OpenCV | 4.1.0 |
IDE | Visual Studio 2017 Enterprise (15.9.13) |
操作系统 | Windows 10 x64 中文专业版 (1903) |
二、图像像素位运算:
- 与:bitwise_and()
- 或:bitwise_or()
- 非(取反):bitwise_not()
- 异或:bitwise_xor()
三、示例代码:
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, const char *argv[])
{
//创