aspect ratio
Show older comments
can any one give me code to find the aspect ratio of human or any genral code to find aspect ratio.....
plzz relpy soon
Accepted Answer
More Answers (1)
Walter Roberson
on 3 Apr 2011
0 votes
Identify the object and label it and regionprops the area; the aspect ratio can be approximated as the ratios of the sides of the bounding box. If the human isn't sitting or lying down or the picture isn't taken at an unusual angle...
7 Comments
Jan
on 4 Apr 2011
If the OP is speaking about an image at all. It could be a 3D voxel data set also.
Walter Roberson
on 4 Apr 2011
How is aspect ratio defined in 3D?
Jan
on 4 Apr 2011
@Walter: ax = axes; cylinder(ax, 10); get(ax, 'DataAspectRatio'); >> [20, 20, 1]
shafaq
on 4 Apr 2011
Walter Roberson
on 4 Apr 2011
"area" means "region" in this sense.
shafaq
on 4 Apr 2011
Walter Roberson
on 4 Apr 2011
foo = double(get(imagesc(),'CData') > 20);
ans =
Area: 904
Centroid: [42.4977876106195 40.5995575221239]
BoundingBox: [15.5 1.5 48 63]
so the aspect ratio for this area is 48 : 63
Categories
Find more on Ground Truth Labeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!