application of spatial filter mask
显示 更早的评论
hello i have a image and i like to detect the horizontal lines of well-defined thickness and retrieve their numbers and length. how come 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]
b=[-1 -1 -1 -1 -1 -1 -1;0 0 0 0 0 0 0;1 1 1 1 1 1 1]
these masks are based on the directional prewitt filter
please help me
2 个评论
esser maalaoui
2013-1-14
Image Analyst
2013-1-14
I don't even understand what you said. Perhaps rephrase it, or get a better English speaker to help you.
回答(1 个)
Image Analyst
2013-1-14
Use conv2() or imfilter():
edgeImage = conv2(yourImage, a, 'same');
类别
在 帮助中心 和 File Exchange 中查找有关 Author Block Masks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!