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?

Answers (1)

Walter Roberson
Walter Roberson on 30 Mar 2016
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 Comments

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(:));
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.
Fairuz Husna comments (to me)
I have the same problem
Fairuz Husna, you have not been clear as to which problem you have.
How do we calculate the width of the crack and the direction in which it propagates?

Sign in to comment.

Asked:

on 30 Mar 2016

Commented:

on 13 Mar 2018

Community Treasure Hunt

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

Start Hunting!