Top hat filter kernel
Can you please tell me how does the kernel of a 2D top hat filter looks
like? I created the following kernel,
0 0 0 -1 0 0 0
0 -1 -1 -1 -1 -1 0
0 -1 -1 1 -1 -1 0
-1 -1 1 1 1 -1 -1
0 -1 -1 1 -1 -1 0
0 -1 -1 -1 -1 -1 0
0 0 0 -1 0 0 0
does this qualify as a top hat filter kernel? If I convolute an image with
this matrix, is it equivalent to have done a top hat filtering operation?
Am sorry if the question is rudimentary, but your help is much
appreciated.
No comments:
Post a Comment