如何为以下代码使用std :: vector而不是cv :: Mat?

时间:2019-09-10 16:26:31

标签: opencv stdvector opencv-mat

我与下面的代码具有相似性比较。

如何不使用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};

0 个答案:

没有答案