← CS 4343 course demos

2D Convolution Demo (JS)

Input image
Choose a sample image:
Your image is processed locally in your browser.
Tip: Both sample images are included with this demo.
Presets
Preset: N/A
Kernel
Examples:
[[0,-1,0],[-1,5,-1],[0,-1,0]]
gaussian(5)   box(3)   identity(7)
Kernel: N/A
Hyperparameters
Notes:
  • same behaves like “zero-pad to keep size” (stride must be 1).
  • valid means no padding.
  • Dilation spaces kernel elements without adding weights.
Actions
Tip: mousewheel to zoom, drag to pan. Padding: pixels | same | valid.

Input

Wheel = zoom · Drag = pan

Output

Wheel = zoom · Drag = pan