Ask Your Question

Revision history [back]

convexityDefect for point or line

Hi,

When my program call convexityDefects with a contour which is a line or a point an exception is thrown at in convHull.cpp. I understand that for a line or a point there is no defect so may be it is better to send an empty vector<vec4i>.

Is it correct?

image description

convexityDefect for point or line

Hi,

When my program call convexityDefects with a contour which is a line or a point an exception is thrown at in convHull.cpp. I understand that for a line or a point there is no defect so may be it is better to send an empty vector<vec4i>.

Is it correct?

../../../modules/imgproc/src/convhull.cpp:279 error (-215) hpoints>2 in function cv::convexityDefects

image description

convexityDefect for point or line

Hi,

When my program call convexityDefects with a contour which is a line or a point an exception is thrown at in convHull.cpp. I understand that for a line or a point there is no defect so may be it is better to send an empty vector<vec4i>.

Is it correct?

../../../modules/imgproc/src/convhull.cpp:279 error (-215) hpoints>2 in function cv::convexityDefects

image description

With image givenmy program is here

convexityDefect for point or line

Hi,

When my program call convexityDefects with a contour which is a line or a point an exception is thrown at in convHull.cpp. I understand that for a line or a point there is no defect so may be it is better to send an empty vector<vec4i>.

Is it correct?

../../../modules/imgproc/src/convhull.cpp:279 error (-215) hpoints>2 in function cv::convexityDefects

image descriptionimage description

With image givenmy program is here