フィルターのクリア

measure the maximum distance in millimeters(mm)

2 ビュー (過去 30 日間)
Dina Abd El-twab
Dina Abd El-twab 2020 年 4 月 11 日
コメント済み: Dina Abd El-twab 2020 年 4 月 12 日
How can I measure the maximum width of the white shape in millimeters(mm) not in pixels ?

回答 (1 件)

Image Analyst
Image Analyst 2020 年 4 月 11 日
Then you need to multiply by the number of millimeters per pixel:
props = regionprops(binaryImage, 'BoundingBox')
width = props.BoundingBox(3) * mmPerPixel;
See attached demo.
  4 件のコメント
Dina Abd El-twab
Dina Abd El-twab 2020 年 4 月 12 日
編集済み: Dina Abd El-twab 2020 年 4 月 12 日
I need it to extract features .
Image Analyst
Dina Abd El-twab
Dina Abd El-twab 2020 年 4 月 12 日
I applied your (regionprops code), but the value that is obtained is not the right value , I applied (imtool) and I found that the maximum width is 60.07 .
But your code gave me the width is 445.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by