Find Area of the object in mm^2 from binary image

12 vues (au cours des 30 derniers jours)
Alina tom
Alina tom le 27 Sep 2018
Modifié(e) : Angelo le 19 Avr 2024
Hi All, I have two questions related to each other. I have a binary image and I want to calculate the area of the object in mm^2. I have calculated the area in pixel by using this code
[B,L] = bwboundaries(Bw,'noholes');
stats = regionprops(L,'Area','perimeter');
area = [stats.Area];
but I don't know how I can convert this in mm^2.
here is my original image in cartesian coordinate and size is 512 x 512.
I have converted the image in polar coordinate , its size is 256x256 . here it shown
can I calculate the length of the line in mm^2. can anybody please help me . Thanks in Advance
  1 commentaire
jonas
jonas le 27 Sep 2018
The length of the line in mm^2?

Connectez-vous pour commenter.

Réponses (1)

Guillaume
Guillaume le 27 Sep 2018
Unless you know the scale of your image (pixels/mm) it is impossible to convert pixel measurements such as area or perimeter to rea world physical units such as mm^2.
You would know the scale of your image either by knowning carefully measuring or calculating the magnification of your imaging system or by capturing an image of an object of known dimensions (under the same imaging conditions).
If you have done neither of these, you're out of luck.
  11 commentaires
Walter Roberson
Walter Roberson le 28 Sep 2018
one pixel is 1/1024 * 9.5 = 0.00927734375 mm then, at least in that direction. That would make one square pixel about 8.607E-5 mm^2 .
Angelo
Angelo le 19 Avr 2024
Modifié(e) : Angelo le 19 Avr 2024
thank you! very helpful for my case as well

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by