Bug when using convexityDefect (Bug #2379)


Added by imran achmed over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-09-20
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:imgproc, video
Target version:3.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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.


convexDefect.cpp - the code reads in an image, finds the contours, the convex hulls and supposed to find the convexityDefects (2.1 kB) imran achmed, 2012-09-20 06:47 pm


Associated revisions

Revision 0b4534d4
Added by Roman Donchenko almost 11 years ago

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

Also available in: Atom PDF