Convolution: a small window sliding over an image
Each output pixel is the sum of a 3 × 3 patch of input pixels, each multiplied by the matching kernel weight.
Window
×0.900.900.900.900.900.900.900.900.90
Kernel
→−101−202−101
Products
Σ−0.9000.90−1.8001.80−0.9000.90
Sum0
Window positioncolumn 13, row 13
Output at this pixel0
Try this
- Compare Vertical edges and Horizontal edges on the square.
- Put the window on a flat area: edge kernels output zero there.
- Choose Custom and make a kernel that detects diagonal edges.