i was given a an image with black lines on white background . what i need to do is, to find the coordinates of the edges at the intersection of black lines..can u plz suggest a way to start with....plzz
Mostrar comentarios más antiguos
Respuesta aceptada
Más respuestas (1)
As a start, the following will separate the image into a binary image H of horizontal lines and V of vertical lines.
A=double(rgb2gray(imread('sid.png'))<10);
e=ones(1,7);
H=conv2(A,e,'same')>3;
V=conv2(A,e.','same')>3;
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
