Ask Your Question
1

contourArea() unit ??

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

NabeelKhan gravatar image

Hi,

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

Thanks

edit retag flag offensive close merge delete

Comments

1

1 answer

Sort by ยป oldest newest most voted
2

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

LBerger gravatar image

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

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

Comments

@sturkmen thanks for your interesting link.

LBerger gravatar imageLBerger ( 2015-08-19 16:09:31 -0600 )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 -0600 )edit

May be you should try answer giving in this post.

LBerger gravatar imageLBerger ( 2015-08-20 02:20:35 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 9,880 times

Last updated: Aug 19 '15