필터 지우기
필터 지우기

aspect ratio

조회 수: 7 (최근 30일)
shafaq
shafaq 2011년 4월 3일
can any one give me code to find the aspect ratio of human or any genral code to find aspect ratio.....
plzz relpy soon

채택된 답변

Jan
Jan 2011년 4월 3일
Another "plzz reply soon" question. If you are in a hurry spending the time to insert any details in your question would be a good idea.
Height = 180 % in cm
Width = 50 % in cm
AspectRatio = Height / Width
This is an aspect ratio of a human. I do not think, that this helps a lot, but it is all I can guess reading your question.
  댓글 수: 9
shafaq
shafaq 2011년 4월 5일
:( should i send u my code
Jan
Jan 2011년 4월 5일
@shafaq: I will not react to sent code - as I have explained above. This is not an email forum! Please insert the code in the original question and most of all an example picture.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 4월 3일
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
shafaq
shafaq 2011년 4월 4일
that i knw but wot it has to do with aspect ratio plz guide me
Walter Roberson
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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by