Ask Your Question
0

Finding the circumference of a shape found by findContours

asked 2014-01-06 12:12:51 -0500

zetain gravatar image

updated 2017-03-10 02:55:32 -0500

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.

edit retag flag offensive close merge delete

Comments

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

Nghia gravatar imageNghia ( 2014-01-06 17:49:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-08 02:59:57 -0500

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-01-06 12:12:51 -0500

Seen: 467 times

Last updated: Jan 06 '14