how can i measure the longest point of my lightning image?

16 vues (au cours des 30 derniers jours)
Neptune16
Neptune16 le 8 Avr 2019
Commenté : Neptune16 le 29 Avr 2019
2_.png
  5 commentaires
Neptune16
Neptune16 le 8 Avr 2019
Modifié(e) : Neptune16 le 8 Avr 2019
no, I mean is there any automatic methods that the code will find the longest point as I mark with orange colour above.
Matt J
Matt J le 8 Avr 2019
Modifié(e) : Matt J le 8 Avr 2019
The straight line distance from red to orange, or the distance when walking along the lightning fork? If the latter, there are several implementations of Dijkstra's algorithm on the file exchange

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 8 Avr 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.
  1 commentaire
Neptune16
Neptune16 le 29 Avr 2019
hello and good day, sir @imageanalyst. I have posted a new question 5 days ago. I would like to ask you a favour to help me with it. kindly please see the latest question I've asked in my profile. thank you for your time and consederation.

Connectez-vous pour commenter.

Plus de réponses (1)

darova
darova le 8 Avr 2019
Draw black (0,0,0) line you want to calculate the length
longest.png
See attached script
  6 commentaires
Image Analyst
Image Analyst le 9 Avr 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).
darova
darova le 9 Avr 2019
thank you

Connectez-vous pour commenter.

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by