At the heart of CNNs lies the convolution operation.
Convolution combines two sets of information:
The filter slides over the image, multiplying and summing values to produce a feature map — highlighting where certain patterns exist.
For example:
| Filter (Edge Detector) | Operation | Output |
|---|---|---|
| [ -1 0 1 ] [ -1 0 1 ] [ -1 0 1 ] | Detects vertical edges | Edge map highlighting boundaries |
By applying multiple filters, CNNs learn hierarchical features:
Example:
Image (3x3): Filter: Result:
1 2 1 0 1 0 8
0 1 0 * 1 -4 1 = -4
2 1 2 0 1 0 8
In CNNs:
Top Tutorials
Related Articles