How to get parallel lines in a binary image?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to find parallel lines in a binary image and calculate the distance between them....
Can anyone help me with the code?
7 commentaires
Réponses (1)
Priysha LNU
le 6 Oct 2020
You may simply calculate the distance between two lists of points as :
Let data1 and data2 be two set of points.
data = data1 - data2;
dist = sqrt(data(:,1).^2+data(:,2).^2);
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
0 commentaires
Voir également
Catégories
En savoir plus sur Feature Detection and Extraction dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!