¡@

Home 

c++ Programming Glossary: hull

Calculating convexityDefects using OpenCV 2.4 in c++

http://stackoverflow.com/questions/10620981/calculating-convexitydefects-using-opencv-2-4-in-c

2.4 in c I'm using OpenCV 2.4 to calculate the convex hull of a image. I'm also doing some processing to remove some noise.. CV_CHAIN_APPROX_SIMPLE cv Point 0 0 Find the convex hull object for each contour vector cv vector cv Point hull contours.size.. hull object for each contour vector cv vector cv Point hull contours.size for int i 0 i contours.size i convexHull contours..

Convexity defects C++ OpenCv

http://stackoverflow.com/questions/6806637/convexity-defects-c-opencv

Part of the code is please note that both countour and hull are vector Point calculated separately CvSeq contourPoints CvSeq.. Point calculated separately CvSeq contourPoints CvSeq hullPoints CvSeq defects CvMemStorage storage CvMemStorage strDefects.. strDefects CvMemStorage contourStr CvMemStorage hullStr CvConvexityDefect defectArray 0 strDefects cvCreateMemStorage..