It should be relatively straighforward to transpose from Python to C++, as Python API is mostly deduced from the original C++ one. Look at the documentation of the C++ API on gdal.org
Le Friday 19 June 2009 19:27:40 Belaid MOA, vous avez écrit : > Thanks a lot Frank. Is there any C/C++ version for that? I am doing the > averaging filter from C++ code. > > With best regards. > Belaid Moa. > > > Date: Fri, 19 Jun 2009 13:23:33 -0400 > > From: [email protected] > > To: [email protected] > > CC: [email protected] > > Subject: Re: [gdal-dev] moving filter averaging in GDAL. > > > > Belaid MOA wrote: > > > Hi, > > > Does GDAL have functions for applying an averaging filter of window, > > > say 11x11, to an image? This is something that comes up all the time in > > > image analysis. So, I suppose GDAL has built-in functions for that. > > > > > > Any help on this is very appreciated. > > > > Belaid, > > > > There is support for filtering, including average filtering, with the > > gdalfilter.py command in gdal/swig/python/samples. It accomplished > > by creating a virtual file using the <KernelFilteredSource> directive - > > so ultimately the work is done by the VRT driver. > > > > Best regards, > > -- > > ---------------------------------------+--------------------------------- > >----- I set the clouds in motion - turn up | Frank Warmerdam, > > [email protected] light and sound - activate the windows | > > http://pobox.com/~warmerdam and watch the world go round - Rush | > > Geospatial Programmer for Rent > > _________________________________________________________________ > We are your photos. Share us now with Windows Live Photos. > http://go.microsoft.com/?linkid=9666047 _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
