ilikecats567 / pyopencv

Automatically exported from code.google.com/p/pyopencv
0 stars 0 forks source link

PyrMeanShiftFiltering does not work #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in 2.1.0.wr1.1.0 call cv.pyrMeanShiftFiltering
2. python crash
3.

What is the expected output? What do you see instead?
cv.pyrMeanShiftFiltering should return the segmented image
but, the function will crash python

What version of the product are you using? On what operating system?
PortablePython_1.1_py2.6.1
2.1.0.wr1.1.0
windows 7

Please provide any additional information below.

Original issue reported on code.google.com by soleh...@gmail.com on 10 Sep 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Similar issue but not on Python. It seems the only change from 2.0.0 to 2.1.0 
is that the new pointer wrap type: cv::Ptr<CvMat> is used instead of CvMat *, 
and the function fails at the deconstruction. This new feature might be 
unstable as I guess. Try modify the type back to CvMat * for that function and 
rebuild the library.
Good luck.

Original comment by xiaobo...@gmail.com on 18 Sep 2010 at 9:03

GoogleCodeExporter commented 9 years ago
thanks

Original comment by soleh...@gmail.com on 19 Sep 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for raising the issue. I'll take a look. Sorry for my slow response as 
I've just got a new job and been busy settling in a new place.

Cheers,
Minh-Tri

Original comment by pmtri80@gmail.com on 19 Sep 2010 at 2:59

GoogleCodeExporter commented 9 years ago
I'd like to confirm xiaobotthu's observation. I rebuilt OpenCV 2.1 with that 
small fix and the pyrMeanShiftFiltering function worked. Though this issue is 
OpenCV's bug, I appreciate that you have filed it.

Minh-Tri

Original comment by pmtri80@gmail.com on 7 Nov 2010 at 8:24