image one with the three masks

image two with the three masks


These masks blur most of the image but sharpen the vertical edges

A small mask doesn't blur the rest of the image as much and detects smaller features. A large mask makes the differences more obvious.

to detect horizontal edges, you would use a mask filled with rows of 1s at the top and filled the rest of the way with 0s.