Re: [gdal-dev] erosion/dilation in gdal ?
Thanks to all for these advices. We already use magick++ and opencv, I will look in these librairies. Regards, Johan. -- Johan Nouvel, RD Engineer http://www.archivideo.com tel : +33 (0)2 99 86 30 20 ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] erosion/dilation in gdal ?
- Original Message - From: Johan Nouvel g...@archivideo.com To: gdal-dev@lists.osgeo.org Sent: Tuesday, February 03, 2009 12:00 PM Subject: [gdal-dev] erosion/dilation in gdal ? Hello all, Is there a way to do erosion/dilatation on image in gdal ? I've looked in alg.h, but I've seen no straight way to do such thing. Any idea ? Best way should be using third party (e.g. GIMP can do even batch mode in CLI) or imagemagick, but first you want to save spatial information with 'listgeo' than restore it back after mangling the data as plain 'picture' with 'geotiffcp'. http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff/docs/listgeo.html Its an idea. /Cristian. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] erosion/dilation in gdal ?
Johan Nouvel wrote: Hello all, Is there a way to do erosion/dilatation on image in gdal ? I've looked in alg.h, but I've seen no straight way to do such thing. Johan, I am not aware of anything intended specifically for this. There is the raster fill algorithm which can grow an image by a specific amount. 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
Re: [gdal-dev] erosion/dilation in gdal ?
Frank Warmerdam wrote: Johan Nouvel wrote: Hello all, Is there a way to do erosion/dilatation on image in gdal ? I've looked in alg.h, but I've seen no straight way to do such thing. Johan, As you very probably know those are operations of the image processing world. If you don't know it yet have a look at the OpenCV library. It is amazingly fast, but doesn't know anything about coordinates. Joaquim Luis ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] erosion/dilation in gdal
Johan Nouvel wrote: Hello all, Is there a way to do erosion/dilatation on image in gdal ? I've looked in alg.h, but I've seen no straight way to do such thing. Johan, On the Python side there is the ndimage package that is included in scipy (http://www.scipy.org/SciPyPackages/Ndimage) that has erosion and dilation functions that you might want to consider. Take a look at binary and grey scale morphology here: http://stsdas.stsci.edu/numarray/numarray-1.5.html/module-numarray.ndimage.h tml If they do what you need, then you can read an image into a numpy array using gdal,perform erosion/dilation, write a new image out with the result and rewrite extent and projection to the image. Vikalpa ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] erosion/dilation in gdal ?
Hello all, Is there a way to do erosion/dilatation on image in gdal ? I've looked in alg.h, but I've seen no straight way to do such thing. Any idea ? Regards, Johan. -- Johan Nouvel, RD Engineer http://www.archivideo.com tel : +33 (0)2 99 86 30 20 ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev