Ask Your Question
0

Finding the circumference of a shape found by findContours

asked Jan 6 '14

zetain gravatar image

updated Mar 10 '17

I am trying to find a red bottle cap and want to use the findContours function together with moments. I know that i get the area of the contour when i access m00 of the moment. I would like to know if there is a way to calculate the circumference of a shape, if there is already a function that handles such a thing or if there is another attribute which i simply have to read.

I looked here but was not able to find something fitting.

Preview: (hide)

Comments

Wouldn't the circumference simply be the size() of vector<cv::Point> ?

Nghia gravatar imageNghia (Jan 6 '14)edit

1 answer

Sort by » oldest newest most voted
0

answered Sep 8 '15

Preview: (hide)

Question Tools

Stats

Asked: Jan 6 '14

Seen: 1,017 times

Last updated: Jan 06 '14