Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-15 Thread David Shean
Hi Etienne and Jan, For what it's worth, I would also use a gdalwarp gauss interpolation method. I've found that the gdaladdo gauss interpolation provides the best anti-aliased downsampling, especially for rasters that contain many small nodata holes surrounded by valid data. Cubic and

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-10 Thread Jan Hartmann
Hi folks, just a general question: I opened this thread asking to implement a few gdaladdo filters in gdalwarp, and am happy to see that happen now. Would it be possible to add a few new filters to gdalwarp/gdaladdo? I'm thinking about the gauss filter for gdalwarp, and the unsharp mask filter

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-09 Thread Etienne Tourigny
The patch works successfully - it was a build environment problem. On Mon, Apr 8, 2013 at 3:17 AM, John Twilley math...@gmail.com wrote: Thank you, Etienne, for writing this code. I greatly appreciate it! I updated my svn checkout, then applied your patch with no errors. I tried to warp

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-09 Thread Etienne Tourigny
I have committed new warping methods average and mode to trunk, this will be part of gdal-1.10 On Tue, Apr 9, 2013 at 10:01 AM, Etienne Tourigny etourigny@gmail.comwrote: The patch works successfully - it was a build environment problem. On Mon, Apr 8, 2013 at 3:17 AM, John Twilley

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-09 Thread Even Rouault
Le mardi 09 avril 2013 19:06:28, Etienne Tourigny a écrit : I have committed new warping methods average and mode to trunk, this will be part of gdal-1.10 Hi Etienne, It would be good if you could extend the autotest suite to add tests for those new warping methods. For that, you can likely

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-09 Thread Even Rouault
Le mardi 09 avril 2013 20:34:40, Even Rouault a écrit : Le mardi 09 avril 2013 19:06:28, Etienne Tourigny a écrit : I have committed new warping methods average and mode to trunk, this will be part of gdal-1.10 Hi Etienne, It would be good if you could extend the autotest suite to add

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-09 Thread Etienne Tourigny
Hi Even, Thanks for your input On Tue, Apr 9, 2013 at 3:34 PM, Even Rouault even.roua...@mines-paris.orgwrote: Le mardi 09 avril 2013 19:06:28, Etienne Tourigny a écrit : I have committed new warping methods average and mode to trunk, this will be part of gdal-1.10 Hi Etienne, It

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-09 Thread Etienne Tourigny
On Tue, Apr 9, 2013 at 6:50 PM, Even Rouault even.roua...@mines-paris.orgwrote: Le mardi 09 avril 2013 20:34:40, Even Rouault a écrit : Le mardi 09 avril 2013 19:06:28, Etienne Tourigny a écrit : I have committed new warping methods average and mode to trunk, this will be part of

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-08 Thread John Twilley
Thank you, Etienne, for writing this code. I greatly appreciate it! I updated my svn checkout, then applied your patch with no errors. I tried to warp my landcover files which use color tables (which is why mode is so important to me) and they did not work. Here is the output:

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-08 Thread Etienne Tourigny
Please upload your file to the ticket (or just a small subset if the file is sensitive, or a way to generate a similar file, or send it to me). It is probably because of the color table which I have not tested for. Etienne On Mon, Apr 8, 2013 at 3:17 AM, John Twilley math...@gmail.com wrote:

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-07 Thread Etienne Tourigny
I have implemented mode and average warping algorithms, based on those used in overview creation. http://trac.osgeo.org/gdal/ticket/5049 This code has been tested on a few datasets (see attachments) with all datatypes (Byte, Int, Float) but not all cases have been looked into (e.g. color tables,

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-04-04 Thread Jan Heckman
Hello Jan, There hasn't been a lot of response to your question, so I take the liberty to give you my thoughts, for what they are worth. My first guess was that you need something like a bilateral filterhttp://en.wikipedia.org/wiki/Bilateral_filter. Noise (detail) reduction is combined with edge

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-03-29 Thread Brent Fraser
Jan, I can't speak the development request, but you may be able to do some sharpening using the Kernel object in a VRT. I've used Coefs-0.111 -0.111 -0.111 -0.111 2 -0.111 -0.111 -0.111 -0.111/Coefs to apply sharpening to satellite imagery. And a few years ago I found that using

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-03-28 Thread Jan Hartmann
Perhaps I should clarify a bit what I meant, I haven't had any reactions until now, positive or negative, and it is important for me. I use Gdalwarp and gdaladdo extensively for goereferencing and tiling large historical maps serieses (raster scans). To display them efficiently, I need to

Re: [gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-03-27 Thread John Twilley
I'm interested in this feature request as well. Adding the mode resampling algorithm to gdalwarp would be very beneficial to my projects, right up there with being able to access the warp API from Python. Is this at all possible? Should I submit a feature request on Trac, or what? Just let me

[gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-02-18 Thread Jan Hartmann
Hi devs, Would it be possible to add the gauss and other interpolations to gdalwarp? At the moment I georeference large scans to 2000*2000 tiles at the most detailed scale, and then create 2000*2000 tiles at resolutions of 2, 4 6 etc times the original scale, using gdaladdo and gauss or

[gdal-dev] Feature request: gauss and other interpolations in gdalwarp

2013-02-18 Thread Jan Hartmann
Hi devs, Would it be possible to add gauss and other interpolations to gdalwarp? At the moment I georeference large scans to 2000*2000 tiles at the most detailed scale, and then create 2000*2000 tiles at resolutions of 2, 4 6 etc times the original scale, using gdaladdo and gauss or other