[GRASS-SVN] r71293 - grass-addons/grass7/imagery/i.superpixels.slic

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 22 04:34:36 PDT 2017


Author: wenzeslaus
Date: 2017-07-22 04:34:36 -0700 (Sat, 22 Jul 2017)
New Revision: 71293

Modified:
   grass-addons/grass7/imagery/i.superpixels.slic/i.superpixels.slic.html
Log:
i.superpixels.slic: example: use landsat only from PERMANENT (full NC), use v.vi for NDVI, typo

Modified: grass-addons/grass7/imagery/i.superpixels.slic/i.superpixels.slic.html
===================================================================
--- grass-addons/grass7/imagery/i.superpixels.slic/i.superpixels.slic.html	2017-07-22 11:01:21 UTC (rev 71292)
+++ grass-addons/grass7/imagery/i.superpixels.slic/i.superpixels.slic.html	2017-07-22 11:34:36 UTC (rev 71293)
@@ -124,7 +124,7 @@
 List Landsat imagery in the full NC sample dataset:
 
 <div class="code"><pre>
-g.list type=raster pattern='lsat*' sep=comma
+g.list type=raster pattern='lsat*' sep=comma mapset=PERMANENT
 </pre></div>
 
 Set the computation region to one of the rasters (all have the same
@@ -137,7 +137,7 @@
 Use the list to create an imagery group:
 
 <div class="code"><pre>
-i.group group=lsat subgroup=lsat input=`g.list type=raster pattern='lsat*' sep=comma`
+i.group group=lsat subgroup=lsat input=`g.list type=raster pattern='lsat*' sep=comma mapset=PERMANENT`
 </pre></div>
 
 Perform the segmentation:
@@ -164,8 +164,7 @@
 and assign average NDVI to each of the vector areas:
 
 <div class="code"><pre>
-r.mapcalc "ndvi = float(lsat7_2002_40 - lsat7_2002_30) / float(lsat7_2002_40 + lsat7_2002_30)"
-r.colors map=ndvi color=ndvi
+i.vi red=lsat7_2002_30 nir=lsat7_2002_40 viname=ndvi output=ndvi
 v.rast.stats map=segments raster=ndvi column_prefix=ndvi method=average
 </pre></div>
 
@@ -182,7 +181,7 @@
 
 <center>
 <img src="i_superpixels_slic.png" alt="Average NDVI in superpixel">
-<p><em>Average NVDI in each superpixel area (segment)</em>
+<p><em>Average NDVI in each superpixel area (segment)</em>
 </center>
 
 <h2>REFERENCES</h2>



More information about the grass-commit mailing list