EquivDiameter calculates the diameter of a circle . The result diameter is in mm or cm or other. Could you please answer if you know? Thanks all.

조회 수: 6 (최근 30일)
Hello my seniors, EquivDiameter in regionprops calculates the diameter of a circle . The result diameter is in mm or cm or other. Could you please answer if you know? Thanks all.

채택된 답변

Image Analyst
Image Analyst 2016년 4월 27일
It's in pixels. If you want in real world units, you have to determine a calibration scaling factor to convert pixels to real world units, like in my attached demo.
  댓글 수: 2
Khaing Zin Htwe
Khaing Zin Htwe 2016년 4월 27일
Is it possible to convert with Matlab functions to be the easier way,sir? If it is, please share me,sir.
Image Analyst
Image Analyst 2016년 4월 27일
What can possibly be easier than multiplying by a scalar?
distanceInCm = distanceInPixels * cmPerPixel;
That's as easy as it gets. You just have to know or figure out what cmPerPixel is. That's what the demo does - it asks you to click on a know distance in the image and asks you the number of real world units for it.
If you already know from other means what cmPerPixel is, then just simply do that multiplication. Really, take another look, it's actually an easy process.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by