Bug when using convexityDefect (Bug #2379)
Description
Getting this error when using the function,
C++: void convexityDefects(InputArray contour, InputArray convexhull, OutputArray convexityDefects)
convexDefect.cpp: In function ‘cv::Mat contour(cv::Mat)’:
convexDefect.cpp:69:67: error: no match for call to ‘(std::vector<cv::Point_<int> >) (std::vector<cv::Point_<int> >&, std::vector<cv::Point_<int> >&, std::vector<cv::Point_<int> >&)’
Attached is the code.
Associated revisions
Merge pull request #2379 from ngryman:optimize_jpeg
History
Updated by Kazuki Matsuda over 12 years ago
The variable "convexityDefects" is defined in your code line #64,
vector<Point> convexityDefects;
So convexityDefects of line 67 is variable not a function in namespace cv.
Updated by Andrey Kamaev over 12 years ago
- Target version changed from 2.4.3 to 3.0
Updated by Andrey Kamaev over 12 years ago
As Kazuki Matsuda said these is a problem in the attached code.
- Status changed from Open to Cancelled