spatial filter mask 1

1 visualización (últimos 30 días)
esser maalaoui
esser maalaoui el 14 de En. de 2013
hello I have a image and i like to detect horizontal lines defined splicer and retrieve their numbers and longueur.why is done with spatial filter mask a=[1 1 1 1 1 1 1;0 0 0 0 0 0 0;-1 -1 -1 -1 -1 -1 -1] and b=[-1 -1 -1 -1 -1 -1 -1;0 0 0 0 0 0 0;1 1 1 1 1 1 1] please help me

Respuestas (1)

Image Analyst
Image Analyst el 14 de En. de 2013
Please post your image. I would probably just sum your image along one dimension and look for big spikes. Or you could use houghlines(). What you're doing is subtracting the line above the current line from the line below the current line, or vice verse. That is an edge detection method. A line is not an edge. A single pixel wide line won't be detected with your method if it's aligned with the edges of the image. Again, post your image and tell me what you really want to do - not just finding lines, but what you plan on doing if you knew where lines were. It may turn out that a different approach is better.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by