Jose Gomez-Dans wrote:
Hi Klokan,

2009/4/1 Klokan Petr Přidal <klo...@klokan.cz <mailto:klo...@klokan.cz>>

    gdal.RegenerateOverview() with 'average' and 'mode' algorithms.
    and
    gdal.ReprojectImage() with 'bilinear','cubic','cubicspline' and
    'lanczos' algorithms.


That's quite cool, but does RegenerateOverview() take into account NODATA values when doing the 'mode' or 'average'? It would be nice if it could ignore them!

Jose,

It appears based on review of the code that the "AVERAGE" overview
generation algorithm does ignore pixels determined to be nodata.

I have not experimentally confirmed this.

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

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to