tapy

tapy is a small tool for designing convolution kernels.

Set the taps on the grid their weights by hand or with automatic distributions, and preview the result on your own image. The kernel is exported as a GLSL function.

Try it below

The embedded version is too small to show the whole interface (the GLSL panel is hidden at this size). For the best experience, use the full-page version.

Drag and drop an image onto the window to replace the default one.

Editing

Linear mode

By default taps sit on texel centers and the image is sampled with nearest filtering.

Enabling linear mode subdivides the grid into halves or quarters of a texel, so taps can be placed at fractional offsets.

GLSL export

The kernel is exported as an unrolled vec4 convolve(sampler2D, vec2, vec2) function, with one line per tap and zero-weight taps skipped.

Credits

The default image is a photograph by Leonhard Niederwimmer, available on Unsplash.