How can i find the length of the horizontal and vertical line present only in the white pixel region for the attached binary image.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti

2 Commenti
Risposta accettata
Più risposte (1)
Saeid
il 11 Dic 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 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!