Measure the length of the Crack?

I have processed a image using edge detection operator and now i have to find the Length of the Crack i.e the length of the white part,If someone could help me figure out how to do it?

Réponses (1)

Walter Roberson
Walter Roberson le 30 Mar 2016

0 votes

I suggest that you bwmorph 'close' then bwmorph 'skel' then bwmorph 'spur'. Then regionprops 'perimeter', probably divided by 2.
Instead of bwmorph 'close' you can imclose()

5 commentaires

After bwmorph(skeleton, 'spur') you might be able to just filter and sum the image to get the length of the skeleton in pixels
binaryImage = bwareafilt(binaryImage, 1); % Take largest blob only.
lengthOfSkel = sum(binaryImage(:));
Walter Roberson
Walter Roberson le 30 Mar 2016
One question is whether you want euclidean distance between the endpoints of the crack, or if you want the distance you get by following the crack. The suggestions we have given above are for distance following the crack.
Walter Roberson
Walter Roberson le 21 Juil 2016
Fairuz Husna comments (to me)
I have the same problem
Walter Roberson
Walter Roberson le 21 Juil 2016
Fairuz Husna, you have not been clear as to which problem you have.
Pranit Patil
Pranit Patil le 13 Mar 2018
How do we calculate the width of the crack and the direction in which it propagates?

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by