Measure Euclidean Distance of mask in crack image

1 view (last 30 days)
Hi I'm a student and new to matlab. I found a crack detection code from this repo: https://github.com/ichae/Crack-Detector.
I want to measure the euclidean distance from one end to another. How can I do this? How am I going to detect the endpoints? Please help me.

Accepted Answer

yanqi liu
yanqi liu on 19 Apr 2022
yes,sir,may be use bwlabel and regionpropers to get the center and BoundbingBox of two object,then compute the average distance to get the sim value
  1 Comment
Jhe Mag
Jhe Mag on 28 Jun 2022
Edited: Jhe Mag on 28 Jun 2022
Hi thank you so much. But I can't seem to imagine how am I going to implement it.
Also is it applicable to complex crack objects such as this one?

Sign in to comment.

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!