aspect ratio
显示 更早的评论
can any one give me code to find the aspect ratio of human or any genral code to find aspect ratio.....
plzz relpy soon
采纳的回答
更多回答(1 个)
Walter Roberson
2011-4-3
0 个投票
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 个评论
Jan
2011-4-4
If the OP is speaking about an image at all. It could be a 3D voxel data set also.
Walter Roberson
2011-4-4
How is aspect ratio defined in 3D?
Jan
2011-4-4
@Walter: ax = axes; cylinder(ax, 10); get(ax, 'DataAspectRatio'); >> [20, 20, 1]
shafaq
2011-4-4
Walter Roberson
2011-4-4
"area" means "region" in this sense.
shafaq
2011-4-4
Walter Roberson
2011-4-4
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
类别
在 帮助中心 和 File Exchange 中查找有关 Ground Truth Labeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!