Filter löschen
Filter löschen

application of spatial filter mask

5 Ansichten (letzte 30 Tage)
esser maalaoui
esser maalaoui am 14 Jan. 2013
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 Kommentare
esser maalaoui
esser maalaoui am 14 Jan. 2013
I do not understand is how the insertion of the image
Image Analyst
Image Analyst am 14 Jan. 2013
I don't even understand what you said. Perhaps rephrase it, or get a better English speaker to help you.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 14 Jan. 2013
Use conv2() or imfilter():
edgeImage = conv2(yourImage, a, 'same');

Community Treasure Hunt

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

Start Hunting!

Translated by