【发布时间】:2023-03-10 01:50:01
【问题描述】:
我有一个函数,我做一个垫子操作。
void my_func()
{
vector<Point> my_vect=another_func();
Mat my_array((int)my_vect.size(),1,CV_8UC1); //This line is reported as leakage
for(int i=0;i<my_vect.size();i++)
my_array.at<uchar>(i,1)=Other_image.at<uchar>(my_vect[i]);
}
【问题讨论】:
-
而 another_func() 是...?
-
@lundin 函数在其上推送数据
-
如果你有内存泄漏,使用 valgrind 来分析泄漏。
标签: c++ opencv memory-management memory-leaks