diff options
author | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2011-11-01 00:42:03 +0000 |
---|---|---|
committer | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2011-11-01 00:42:03 +0000 |
commit | a207d748bc5e311e48e00e18bb1c7eed76dc3b0a (patch) | |
tree | 271c3d8be44ead0d695ee091ad290c31783c94eb | |
parent | dbc80e801b2cffde7479b3d7d82882d4ee21aac0 (diff) |
cleans a bug that leads to a crash on init *_opencv_lk with OpenCV 2.1
svn path=/trunk/externals/pix_opencv/; revision=15689
-rw-r--r-- | pix_opencv_lk.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pix_opencv_lk.cc b/pix_opencv_lk.cc index 9e02ae3..8a9fe2e 100644 --- a/pix_opencv_lk.cc +++ b/pix_opencv_lk.cc @@ -175,9 +175,9 @@ void pix_opencv_lk :: processRGBAImage(imageStruct &image) count = MAX_COUNT; cvGoodFeaturesToTrack( gray, eig, temp, points[1], &count, quality, min_distance, 0, 3, 0, 0.04 ); - cvFindCornerSubPix( gray, points[1], count, - cvSize(win_size,win_size), cvSize(-1,-1), - cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03)); + // cvFindCornerSubPix( gray, points[1], count, + // cvSize(win_size,win_size), cvSize(-1,-1), + // cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03)); cvReleaseImage( &eig ); cvReleaseImage( &temp ); @@ -453,9 +453,9 @@ void pix_opencv_lk :: processRGBImage(imageStruct &image) count = MAX_COUNT; cvGoodFeaturesToTrack( gray, eig, temp, points[1], &count, quality, min_distance, 0, 3, 0, 0.04 ); - cvFindCornerSubPix( gray, points[1], count, - cvSize(win_size,win_size), cvSize(-1,-1), - cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03)); + // cvFindCornerSubPix( gray, points[1], count, + // cvSize(win_size,win_size), cvSize(-1,-1), + // cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03)); cvReleaseImage( &eig ); cvReleaseImage( &temp ); @@ -732,9 +732,9 @@ void pix_opencv_lk :: processGrayImage(imageStruct &image) count = MAX_COUNT; cvGoodFeaturesToTrack( gray, eig, temp, points[1], &count, quality, min_distance, 0, 3, 0, 0.04 ); - cvFindCornerSubPix( gray, points[1], count, - cvSize(win_size,win_size), cvSize(-1,-1), - cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03)); + // cvFindCornerSubPix( gray, points[1], count, + // cvSize(win_size,win_size), cvSize(-1,-1), + // cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03)); cvReleaseImage( &eig ); cvReleaseImage( &temp ); |