opencv-absdiff两个数组差的绝对值
作者:互联网
两个数组差的绝对值
cv::Mat src(5, 4, CV_32FC3, cv::Scalar(10, -20, 30)); cv::Mat src1(5, 4, CV_32FC3, cv::Scalar(30, -5, 20)); cv::Mat dst; cv::absdiff(src, src1,dst); std::cerr << src << std::endl; std::cerr << src1 << std::endl; std::cerr << dst << std::endl;
标签:src,Mat,absdiff,30,CV,opencv,绝对值,cv 来源: https://www.cnblogs.com/liming19680104/p/15528229.html