<div dir="ltr">Check out the r.growth.shrink addon.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 1:59 PM, Robert Nuske <span dir="ltr"><<a href="mailto:rnuske@gwdg.de" target="_blank">rnuske@gwdg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br>
<br>
looking at some noisy raster map, I would like to clean up the patches (map<br>
consists only of one class and NULL) using basic mathematical morphology<br>
(dilation & erosion) in GRASS 7.0.<br>
<br>
<br>
The dilation can easily be achieved with r.grow.<br>
But the erosion seems not to be as straight forward.<br>
<br>
Since the example about shrinking was removed from the help page of r.grow in<br>
GRASS 7.0 (<a href="http://grass.osgeo.org/grass70/manuals/r.grow.html" target="_blank">http://grass.osgeo.org/grass70/manuals/r.grow.html</a>), I hoped for an<br>
easier way to carry out the erosion. Looking in vain for a raster command<br>
named shrink or erode, I tried a negative distance in r.buffer (-> error) and<br>
negative radius in r.grow (treated as absolute value).<br>
<br>
The following produce identical output with grown patches.<br>
r.grow in=mod_10_33 out=mod_10_33_1 radius=1.1<br>
r.grow in=mod_10_33 out=mod_10_33_2 radius=-1.1<br>
<br>
<br>
Any suggestions for a quick erosion?<br>
<br>
<br>
thanks<br>
Robert<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>