Deep Learning
Image Convolution Interactive Tool
Kernel
Laplacian (8-neighbour)
Second derivative in all directions. Zero on flat areas, large on edges and fine detail.
Output options
Image
Why this matters for CNNs
A convolutional layer runs this same multiply-and-sum with many kernels at once. The difference is that its weights are learned by backpropagation instead of chosen by hand, and early layers often end up resembling the Sobel, Laplacian and blur filters here.
Try this: compare Sobel X with Sobel Y on the stripes sample; set Passes to 4 on Box blur and compare it with Gaussian 5×5; turn Normalise off on Box blur to see why averaging weights must sum to 1. Then continue to the CNN visualiser.
How to use this tool
- 1Start with a built-in sample, upload an image, or paste one with Ctrl+V.
- 2Pick a preset kernel, or type your own weights. Fractions like 1/16 work.
- 3Adjust normalisation, bias, absolute value, passes, strength and border handling.
- 4Click any pixel to see the patch, the products and the final output value.
- 5Download the feature map as PNG, or copy the kernel as NumPy code.
Frequently asked questions
It slides a small kernel over an image and computes weighted sums of neighboring pixels to create a filtered output or feature map.
No. Images are loaded and processed locally in the browser canvas.
CNN layers learn many convolution kernels from training data. This tool uses hand-picked kernels so students can see the same operation clearly.
Related tools
CNNs — Convolutional Neural Networks (Explained)
Learn convolution, kernels/filters, pooling, feature maps, and why CNNs work for images.
Vision Transformers (ViT) — Transformers for Images
Learn how ViT uses patches + attention for vision tasks and how it differs from CNNs.
Gradient Descent — Optimization (Explained)
Compare gradient descent, momentum, Nesterov, RMSProp and Adam on bowls, valleys, Rosenbrock, Himmelblau and saddles.