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
With image givenmy program is here
What is the exception?