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!