These are the results of the sample solution for the resize assignment.
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 |