Ticket #1951 (closed defect: fixed)

Opened 10 months ago

Last modified 5 months ago

Lanczos Resample Anomolies near nodata values.

Reported by: warmerdam Assigned to: dron
Priority: normal Milestone: 1.5.2
Component: Utilities Version: svn-trunk
Severity: normal Keywords: gdalwarp lanczos
Cc:

Description

Andrey,

When I run the following warps, I see a trough in the pixels values along the left side of the valid data in the lanczos result, but nothing like that in the cubic spline output. I think this is a problem in the lanc resampler but I'm not positive. Could you look into it at some point? Let me know if you need me to more specifically highlight the issue.

gdalwarp warpsamp.tif -tr 500 500 -rcs out.tif -srcnodata -32768
gdalwarp warpsamp.tif -tr 500 500 -r lanczos  out.tif -srcnodata -32768

Attachments

warpsamp.tif (20.0 kB) - added by warmerdam on 10/27/07 15:39:36.
input file to demonstrate lanc issue.

Change History

10/27/07 15:39:36 changed by warmerdam

  • attachment warpsamp.tif added.

input file to demonstrate lanc issue.

03/30/08 09:13:56 changed by rouault

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from 1.5.1 to 1.5.2.

The problem was that dfAccumulatorWeight can be > 1 when we ignore some source nodata values, and the normalization of values and densities was only done when dfAccumulatorWeight < 1.

I think this could also happen in cubic spline resampling so I fixed both.

Fixed in trunk in r14126 and in branches/1.5 in r14127.