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?
답변 (1개)
Walter Roberson
2016년 3월 30일
0 개 추천
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
Image Analyst
2016년 3월 30일
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
2016년 3월 30일
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
2016년 7월 21일
Fairuz Husna comments (to me)
I have the same problem
Walter Roberson
2016년 7월 21일
Fairuz Husna, you have not been clear as to which problem you have.
Pranit Patil
2018년 3월 13일
How do we calculate the width of the crack and the direction in which it propagates?
카테고리
도움말 센터 및 File Exchange에서 Morphological Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!