After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 148193 - Image resampling should be performed better...
Image resampling should be performed better...
Status: RESOLVED DUPLICATE of bug 76096
Product: GIMP
Classification: Other
Component: Plugins
1.x
Other Linux
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-07-22 17:49 UTC by Craig DeForest
Modified: 2004-07-22 23:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Craig DeForest 2004-07-22 17:49:52 UTC
Pick an image with a lot of high spatial frequencies, such as a three-pixel
square grid -- but any photo with strong, small features will do.  Select, e.g.,
the Polar Coordinates filter.  In the places where the image is shrunk, you will
see strong pixel aliasing and moire in the distorted image.  

This is because of the sampling technique being used by the resampling code.  If
the pixels are locally interpolated or sampled, then reducing the image will
result in aliasing.  Resampling correctly requires a variable spatial filter
that can average over suitable regions of the input image.  I have written an
algorithm that will do this correctly, as part of the PDL::Transform perl module
(http://pdl.perl.org); you can also download a scientific paper describing what
to do, from
"http://www.boulder.swri.edu/~deforest/Papers/2003-resample/resample-reprint.pdf".
A simple demo movie showing the benefits of correct resampling is at 
"http://www.boulder.swri.edu/~deforest/PDL/3gal.mpg": that movie shows the M51
galaxy, transformed to polar coordinates with periodic boundary conditions with
three different resampling techniques.

I regret that I don't have the time to port the PDL::Transform code directly
into the GIMP; but I'd be happy to help anyone who's interested in doing so.
Comment 1 Sven Neumann 2004-07-22 23:46:38 UTC

*** This bug has been marked as a duplicate of 76096 ***