How can i find the length of the horizontal and vertical line present only in the white pixel region for the attached binary image.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
2 commentaires
Réponse acceptée
Plus de réponses (1)
Saeid
le 11 Déc 2018
Hi, If the blue cross is not in the initial image, you can easily use this:
imgbw=im2bw(img);
VerticalLength=sum(img(:,column));
HorizontalLength=sum(img(row,:));
where img is your original image and row and column are from the center of the cross.
0 commentaires
Voir également
Catégories
En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!