Ask Your Question

contourArea() unit ??

asked 2015-08-19 15:47:27 -0500

NabeelKhan gravatar image


I am using contourArea() to get the area of a binary object

My question: does it return the number of pixels ?? Or if area then what is the unit of it

I need to convert the area into Mm2 and report it

Any help will be really appreciated


edit retag flag offensive close merge delete



1 answer

Sort by ยป oldest newest most voted

answered 2015-08-19 15:56:08 -0500

LBerger gravatar image

updated 2015-08-19 16:11:53 -0500

contourArea unit is pixel. You can then mutiply area by your scale to have area in mm2. Area accuracy is given by perimeter I think : AREA = CONTOURAREA +/- ARCLENGTH

That's trivial case. Things can be more complicated if your scale is not linear : pixel near center haven't got same surface than pixel far from center....

edit flag offensive delete link more


@sturkmen thanks for your interesting link.

LBerger gravatar imageLBerger ( 2015-08-19 16:09:31 -0500 )edit

so it basically returns the number of pixels in the object ?? plz correct me if I am wrong

NabeelKhan gravatar imageNabeelKhan ( 2015-08-19 17:14:49 -0500 )edit

May be you should try answer giving in this post.

LBerger gravatar imageLBerger ( 2015-08-20 02:20:35 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-08-19 15:47:27 -0500

Seen: 4,333 times

Last updated: Aug 19 '15