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!