int _tmain(int argc, _TCHAR* argv[])
{
std::string path="123.jpg";
cv::Mat testMat=cv::imread(path);
cv::vector<circle_found> found;
for (int i = 0; i < 3000; i++)
{
ExtendCV::FindCircles(testMat,found,1,1,183,332,10,68,73,0.5);
}
cv::circle(testMat,cv: oint(found[0].circle[0],found[0].circle[1]),found[0].circle[2],cv::Scalar(0,0,255),2);
cv::imshow("hehe",testMat);
cv::waitKey();
return 0;
}
release下测试,耗时1分钟,内存并没有太大的变化啊(<1Mb)
可能是库版本不兼容,vs版本和你用的opencv对应的库版本必须完全一致 |