how can i measure the longest point of my lightning image?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Neptune16
am 8 Apr. 2019
Kommentiert: Neptune16
am 29 Apr. 2019
![2_.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/212639/2_.png)
Akzeptierte Antwort
Image Analyst
am 8 Apr. 2019
One way to find the longest spine might be to compute the skeleton and endpoints with bwmorph(). Then compute distance between all identified endpoints with bwdistgeodesic(). See Steve's Image Processing blog
Then find out which pair of endpoints had the longest distance.
Weitere Antworten (1)
darova
am 8 Apr. 2019
Draw black (0,0,0) line you want to calculate the length
![longest.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/212699/longest.png)
See attached script
6 Kommentare
Image Analyst
am 9 Apr. 2019
If you're going to draw a black line with paint, then you might as well use imfreehand() in MATLAB. I think he was looking for an automatic way, like me (below) or Matt J (above in comments section) suggested. That said, sometimes it's more time effective to employ user-assisted image analysis than trying months or years to get an automatic method (luckily this application won't take anywhere near that long).
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!