我与下面的代码具有相似性比较。
如何不使用cv :: Mat将其转换为std :: vector?
cv::mat broad;
cv::mat cpm;
broad = broad - cmp;
cv::pow(broad,2,broad);
cv::reduce(broad, broad, 1, cv::REDUCE_SUM);
double dis;
cv::Point point;
cv::minMaxLoc(broad, &dis, 0, &point, 0);
return class_info{dis, point.y};