[Gdal-dev] Resampling with gdalwarp

Frank Warmerdam warmerdam at pobox.com
Tue Mar 16 18:58:27 EST 2004


Mario Beauchamp wrote:
> Hi,
> 
> Is there something wrong with gdalwarp resampling algorithms? I have done some tests and got strange
> results which I put here: http://pages.infinit.net/starged/gdal/resampling.html
> 
> For comparison, I have put an image processed in Paint Shop Pro 7 using bilinear resampling. It's
> also strange that cubic spline give almost the same results.

Mario,

At the macro level (looking at a whole image) I would expect bilinear and
cubic convolution to be hard to differentiate unless a great deal of
resolution magnification is taking place.

I looked at the images, and it does appear that there are some differences
from the results in Paint Shop Pro, but it is impossible for me to tell
what might be causing the differences.   If you can provide the input
files, and arguments you used to process them, and the raw results from
Paint Shop Pro I could try and compare.  However, there isn't anything I
do with jpeg files since the "corruption" of the data due to jpeg
compression will in many ways dominate the effects of different resampling
algorithms.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list