measure the maximum distance in millimeters(mm)
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I measure the maximum width of the white shape in millimeters(mm) not in pixels ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283668/image.png)
0 commentaires
Réponses (1)
Image Analyst
le 11 Avr 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 commentaires
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!