필터 지우기
필터 지우기

How to calculate diameter from side view?

조회 수: 3 (최근 30일)
Steven
Steven 2014년 1월 6일
편집: Steven 2014년 1월 7일
Hi!
Imagine we have a side view of a circular object such as a coin. How can I accurately calculate the diameter of an object from side view image?
The simple thing is that the user determines the two sides (left and right) of the object as the diameter, but is there another way that MATLAB can detect it automatically and accurately?
Thanks!
Steven
  댓글 수: 3
Jan
Jan 2014년 1월 6일
To calculate the diameter accurately, you need the parameter of the optical system and the distance also, when you want the real extent.
Steven
Steven 2014년 1월 7일
Thanks all. The sample is posted here.

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

채택된 답변

Image Analyst
Image Analyst 2014년 1월 6일
I don't know what you mean by side view. Do you mean like front side and back side (head side and tail side), or do you mean like an "edge-on" view, so that it looks like a rod or stick? Either way, you need to get a binary image of the object and then use regionprops to get the length or diameter of it. Post an image so we can see it. regionprops gives the answer in pixels. If you need real world units, like Jan brought up, then see my attached spatial calibration demo, below in blue text.
  댓글 수: 6
Steven
Steven 2014년 1월 7일
I am afraid I can't. Maybe I just crop it and adjust the contrast to do so.
Image Analyst
Image Analyst 2014년 1월 7일
How can you crop if you don't know what size it is yet? Anyway, adjusting contrast by a linear stretch like imadjust() or non-linearly with histeq() won't help at all. You'd need more sophisticated things, like morphological filters like imopen().

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by