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.
0 件のコメント
採用された回答
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 件のコメント
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 Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!