spatial filter mask 1

5 ビュー (過去 30 日間)
esser maalaoui
esser maalaoui 2013 年 1 月 14 日
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

回答 (1 件)

Image Analyst
Image Analyst 2013 年 1 月 14 日
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.

Community Treasure Hunt

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

Start Hunting!

Translated by