Different result of working cvPyrMeanShiftFiltering,cvDilate, cvFindContours,cvCanny and pyrMeanShiftFiltering,dilate, findContours, canny.

asked 2018-05-31 02:16:23 -0500

Tigran gravatar image

updated 2018-05-31 03:14:06 -0500

When I used cvPyrMeanShiftFiltering,cvDilate, cvFindContours and cvCanny which work with IplImage type I have memory leak. I tried use new analogs cv::pyrMeanShiftFiltering,cv::dilate, cv::findContours and cv::canny which work with cv::Mat. In same case I have different result. Please help to fix memory leak problem or fix work difference of old and new function works. Where is the analog of cvCreateStructuringElementEx function?

edit retag flag offensive close merge delete


you should not do anything with opencv's deprecated c-api at all. (it might be gone, tomorrow)

then (with the exception of findContours) all those c functions are wrappers about the same c++ code, so impossible to say, why you get differences, without knowing any further context.

berak gravatar imageberak ( 2018-05-31 02:31:19 -0500 )edit