measure the maximum distance in millimeters(mm)

1 Ansicht (letzte 30 Tage)
Dina Abd El-twab
Dina Abd El-twab am 11 Apr. 2020
Kommentiert: Dina Abd El-twab am 12 Apr. 2020
How can I measure the maximum width of the white shape in millimeters(mm) not in pixels ?

Antworten (1)

Image Analyst
Image Analyst am 11 Apr. 2020
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 Kommentare
Dina Abd El-twab
Dina Abd El-twab am 12 Apr. 2020
Bearbeitet: Dina Abd El-twab am 12 Apr. 2020
I need it to extract features .
Image Analyst
Dina Abd El-twab
Dina Abd El-twab am 12 Apr. 2020
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by