Deep Learning

Image Convolution Interactive Tool

Slide a kernel over an image and watch it become a feature map. Choose from 15 classic filters or type your own 3×3 or 5×5 weights, then click any pixel to see the exact multiply-and-sum behind it.
15 preset kernels3×3 and 5×5Runs in your browser

Kernel

Laplacian (8-neighbour)

Second derivative in all directions. Zero on flat areas, large on edges and fine detail.

Weights
Sum of weights 0

Output options

Arithmetic

Not available: the weights sum to 0.

Show negative responses (light-to-dark edges) as bright.

0

Added after the sum. +128 makes a zero response mid-grey.

Image

Convert to luminance before filtering, as most edge detectors do.

1×

Run the kernel repeatedly. Repeated box blurs approach a Gaussian.

100%

Blend the result with the original image.

Image

Original
Feature map
Click the image to inspect a pixel.Filtered in 1 ms

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

  1. 1Start with a built-in sample, upload an image, or paste one with Ctrl+V.
  2. 2Pick a preset kernel, or type your own weights. Fractions like 1/16 work.
  3. 3Adjust normalisation, bias, absolute value, passes, strength and border handling.
  4. 4Click any pixel to see the patch, the products and the final output value.
  5. 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.