matlab programming help

Status
Not open for further replies.

intan

Member level 2
Joined
Feb 16, 2009
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,931
in the doc, i hv a picture with edge detecting. i wan to knw hw to get the area of the person? its equal to the number of the pixel rite? really appreciate ur help. thanks
 

Attachments

  • pic.doc
    84 KB · Views: 49

the number of the pixel inside the edges is only an approximate value of the area.
you may take the "scale" issue in count. if you change the camera view of distance to the person, then the area will differ.
On the other hand, when you change the size of the picture (zoom or shrink or change in resolution) the number of pixels will change.
 

You can try using connected component labelling - bwlabel() to find all the unique objects in the image.

Then use regionprops() to find the area of the object of interest.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…