How to know an area of object using MATLAB

조회 수: 2 (최근 30일)
Gary
Gary 2014년 4월 18일
댓글: Image Analyst 2014년 5월 9일
I am currently stuck in this part. What I want to know is the area of an object that is highlighted in the YELLOW region above.
Please do assist me.

채택된 답변

Image Analyst
Image Analyst 2014년 4월 18일
The image segmentation algorithm that you used to get that binary image is poor. You should improve it. Only once you can get a good binary image can you call regionprops and get meaningful data out. You're not at that point yet. Go here for "car detection" algorithms: http://iris.usc.edu/Vision-Notes/bibliography/contents.html Sorry, we can't help with your algorithm selection or implementation/development.
  댓글 수: 7
Gary
Gary 2014년 5월 9일
Thanks a lot. Will update this thread if i still stuck somewhere.
Image Analyst
Image Analyst 2014년 5월 9일
You're welcome. Can you mark the Answer as Accepted?

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2014년 4월 18일
편집: Walter Roberson 2014년 4월 18일
Once you have created a mask that corresponds to only the object, use regionprops() with the 'Area' option.
  댓글 수: 11
Image Analyst
Image Analyst 2014년 5월 7일
There are blobs in there with areas 1, 2, or 3 as well as some very very large areas of thousands of pixels. I don't understand why having a blob with area 3 is unexpected for you.
Gary
Gary 2014년 5월 8일
Oh. So how am i able to get the entire area of the white colour pixel in the image above ?
I am still relatively new to MATLAB.

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

Community Treasure Hunt

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

Start Hunting!

Translated by