spatial filter mask 1
显示 更早的评论
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
2013-1-14
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!