[GRASS-user] dilation & erosion (mathematical morphology)

Paulo van Breugel p.vanbreugel at gmail.com
Thu Feb 5 05:53:05 PST 2015


Check out the r.growth.shrink addon.

On Thu, Feb 5, 2015 at 1:59 PM, Robert Nuske <rnuske at gwdg.de> wrote:

> Hi there,
>
> looking at some noisy raster map, I would like to clean up the patches (map
> consists only of one class and NULL) using basic mathematical morphology
> (dilation & erosion) in GRASS 7.0.
>
>
> The dilation can easily be achieved with r.grow.
> But the erosion seems not to be as straight forward.
>
> Since the example about shrinking was removed from the help page of r.grow
> in
> GRASS 7.0 (http://grass.osgeo.org/grass70/manuals/r.grow.html), I hoped
> for an
> easier way to carry out the erosion. Looking in vain for a raster command
> named shrink or erode, I tried a negative distance in r.buffer (-> error)
> and
> negative radius in r.grow (treated as absolute value).
>
> The following produce identical output with grown patches.
>   r.grow in=mod_10_33 out=mod_10_33_1 radius=1.1
>   r.grow in=mod_10_33 out=mod_10_33_2 radius=-1.1
>
>
> Any suggestions for a quick erosion?
>
>
> thanks
>   Robert
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150205/1f6c201f/attachment.html>


More information about the grass-user mailing list