4 点除运算
4.1 使用“/”运算符
#include <opencv2/core/core.hpp>
#include<iostream>
using namespace std;
using namespace cv;
int main(){
Mat src1 = (Mat_<float>(2, 3) << 23, 123, 90, 100, 250, 0);
Mat src2 = (Mat_<float>(2, 3) << 125, 150, 60, 100, 10, 40);
Mat dst;
dst = src1 / src2;
cout << src1 << endl;
cout << src2 << endl;
cout << dst << endl;
return 0;
}

4.2 使用divide函数
#include <opencv2/core/core.hpp>
#include<iostream>
using namespace std;
using namespace cv;
int main(){
Mat src1 = (Mat_<float>(2, 3) << 23, 123, 90, 100, 250, 0);
Mat src2 = (Mat_<uchar>(2, 3) << 125, 150, 60, 100, 10, 40);
Mat dst;
divide(src1, src2, dst, 1.0, CV_32FC1);
cout << src1 << endl;
cout << src2 << endl;
cout << dst << endl;
return 0;
}
