[GRASS-SVN] r68974 - grass/trunk/raster/r.clump
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 15 06:14:26 PDT 2016
Author: mmetz
Date: 2016-07-15 06:14:26 -0700 (Fri, 15 Jul 2016)
New Revision: 68974
Modified:
grass/trunk/raster/r.clump/clump.c
grass/trunk/raster/r.clump/r.clump.html
Log:
r.clump: manual, messages
Modified: grass/trunk/raster/r.clump/clump.c
===================================================================
--- grass/trunk/raster/r.clump/clump.c 2016-07-14 23:30:00 UTC (rev 68973)
+++ grass/trunk/raster/r.clump/clump.c 2016-07-15 13:14:26 UTC (rev 68974)
@@ -141,7 +141,6 @@
cur_clump = Rast_allocate_c_buf();
out_cell = Rast_allocate_c_buf();
- G_message(_("Pass 2 of 2..."));
for (row = 0; row < nrows; row++) {
G_percent(row, nrows, 2);
Modified: grass/trunk/raster/r.clump/r.clump.html
===================================================================
--- grass/trunk/raster/r.clump/r.clump.html 2016-07-14 23:30:00 UTC (rev 68973)
+++ grass/trunk/raster/r.clump/r.clump.html 2016-07-15 13:14:26 UTC (rev 68974)
@@ -21,7 +21,9 @@
value. Cells are clumped together if their spectral distance is ≤
<em>threshold</em>. The result is very sensitive to this
<em>threshold</em> value, a recommended start value is 0.01, then
-increasing or decreasing this value according to the desired output.
+increasing or decreasing this value according to the desired output.
+Once a suitable threshold has been determined, noise can be reduced by
+merging small clumps with the <em>minsize</em> option.
<p>
<em>r.clump</em> can also use multiple raster maps of any kind (CELL,
@@ -74,7 +76,11 @@
<div class="code"><pre>
g.region raster=lsat7_2002_10 -p
r.clump in=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40,lsat7_2002_50,lsat7_2002_70 \
- out=lsat7_2002_clump_4 threshold=0.045
+ out=lsat7_2002_clump threshold=0.045
+
+# reduce noise
+r.clump in=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40,lsat7_2002_50,lsat7_2002_70 \
+ out=lsat7_2002_clump_min10 threshold=0.045 minsize=10
</pre></div>
<h2>SEE ALSO</h2>
@@ -97,7 +103,7 @@
Michael Shapiro, U.S. Army Construction Engineering Research
Laboratory<br>
-Markus Metz (diagonal clump tracing)
+Markus Metz (diagonal clump tracing, fuzzy clumping)
<p>
<i>Last changed: $Date$</i>
More information about the grass-commit
mailing list