main-downsample

Examples of downsampling with various kernels

These are the results of the sample solution for the resize assignment. You can see upsizing results here. On that page, I even give the code for the kernels.

Here is a source image, contrived as a tough test case:

The image is 256x256. If you want a tga version to test yourself, you can have it pics:Downsample/t1.tga. (note: most browsers don’t support viewing TGA files).

First, here’s downsampling to 100x100.

spike filter (nearest neighbor)
box filter
tent filter
Catmull-Rom (interpolating cubic)
Cubic B-Spline
Mitchell-Netravali
Lanczos with 2 lobes
Lanczos with 3 lobes
Lanczos with 4 lobes

Here’s what you get if you downsample to 150x75

spike filter (nearest neighbor)
box filter
tent filter
Catmull-Rom (interpolating cubic)
Cubic B-Spline
Mitchell-Netravali
Lanczos with 2 lobes
Lanczos with 3 lobes
Lanczos with 4 lobes
Page last modified on September 25, 2009, at 11:34 AM