[GRASS-SVN] r43325 - grass-addons/raster/r.seg/rseg

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 28 06:15:51 EDT 2010


Author: neteler
Date: 2010-08-28 10:15:51 +0000 (Sat, 28 Aug 2010)
New Revision: 43325

Modified:
   grass-addons/raster/r.seg/rseg/description.html
Log:
HTML prettified

Modified: grass-addons/raster/r.seg/rseg/description.html
===================================================================
--- grass-addons/raster/r.seg/rseg/description.html	2010-08-28 09:55:10 UTC (rev 43324)
+++ grass-addons/raster/r.seg/rseg/description.html	2010-08-28 10:15:51 UTC (rev 43325)
@@ -1,120 +1,155 @@
 <h2>DESCRIPTION</h2>
 
-<em><b>r.seg</b></em> generates a piece-wise smooth approximation of the input raster map and a raster map of the discontinuities of the output approximation. <br>
+<em><b>r.seg</b></em> generates a piece-wise smooth approximation of the
+input raster map and a raster map of the discontinuities of the output
+approximation. <br>
 
-The discontinuities of the output approximation are preserved from being smoothed. The values of the discontinuity map are close to one where the output approximation is "homogeneous", where the output approximation has discontinuities (edges) the values are close to zero. <br>
+The discontinuities of the output approximation are preserved from being
+smoothed. The values of the discontinuity map are close to one where the
+output approximation is "homogeneous", where the output approximation
+has discontinuities (edges) the values are close to zero. <br>
 
-The module makes use of the <em>varseg</em> library which implements the Mumford-Shah [1] variational model for image segmentation. The Mumford-Shah variational model with curvature term [2] is also implemented in the library. The curvature term prevents the discontinuities from being shortened too much when the parameter alpha is set to very high values, (this happens very rarely). <br>
+The module makes use of the <em>varseg</em> library which implements
+the Mumford-Shah [1] variational model for image segmentation. The
+Mumford-Shah variational model with curvature term [2] is also implemented
+in the library. The curvature term prevents the discontinuities from being
+shortened too much when the parameter alpha is set to very high values,
+(this happens very rarely). <br>
 
-Some examples of use of the module can be found <a href="http://www.ing.unitn.it/~vittia/sw/sw_index.html">here</a> and in <a href="http://download.osgeo.org/osgeo/foss4g/2009/SPREP/2Thu/Parkside%20GO4/1500/Thu G04 1545 Zatelli.pdf">this presentation [FOSS4G 2009 - pdf]</a>. <br> 
-For details on the numerical implementation see [3]
+Some examples of use of the module can be found <a
+href="http://www.ing.unitn.it/~vittia/sw/sw_index.html">here</a> and in <a
+href="http://download.osgeo.org/osgeo/foss4g/2009/SPREP/2Thu/Parkside%20GO4/1500/Thu
+G04 1545 Zatelli.pdf">this presentation [FOSS4G 2009 - pdf]</a>. <br>
+For details on the numerical implementation see [3].
 
 <h2>NOTES</h2>
-Remove any MASK before the execution of the module. If a MASK is present, the module stops after just one iteration.
+Remove any MASK before the execution of the module. If
+a MASK is present, the module stops after just one iteration.
 <br><br>
 
 Replace (r.null) any null data with the map average value (r.univar).
 <br><br>
 
-The segmentation depends on the parameters alpha and lambda:<br>
-- alpha controls how many discontinuities are allowed to exist.<br>
-- lambda controls the smoothness of the solution.<br>
-It is not possible to select the values of the parameters in an automatic way. Test some different values to understand their influence on the results. Try the following procedure:<br>
-- run the module with both alpha and lambda set to 1.0<br>
-- run the module with alpha set to 1.0 and different values for lambda<br>
-&nbsp e.g., 0.01, 0.1, 1, 10, 100<br>
-- run the module with lambda set to 1.0 and different values for alpha<br>
-&nbsp e.g., let's say 0.01, 0.1, 1, 10, 100<br>
-- see how the segmentations change and select the values that produce the result that best fits your requirements.
-<br><br>
+The segmentation depends on the parameters alpha and lambda:
+<ul>
+<li> alpha controls how many discontinuities are allowed to exist.
+<li> lambda controls the smoothness of the solution.
+<li> It is not possible to select the values of the parameters in an
+  automatic way. Test some different values to understand their 
+  influence on the results. Try the following procedure:
+<ul>
+  <li> run the module with both alpha and lambda set to 1.0
+  <li> run the module with alpha set to 1.0 and different values for lambda
+     <br> &nbsp; e.g., 0.01, 0.1, 1, 10, 100
+  <li> run the module with lambda set to 1.0 and different values for alpha
+     <br> &nbsp; e.g., let's say 0.01, 0.1, 1, 10, 100
+  <li> see how the segmentations change and select the values that
+    produce the result that best fits your requirements.
+</ul>
+</ul>
 
-The module computes the segmentation by means of an iterative procedure.<br>
-The module stops either when the number of iterations reaches the maximum number of iterations [mxi] or when the maximum difference between the solutions of two successive iterations is less than the convergence tolerance [tol].<br>
-To stop the iteration procedure, it is easier to act on the maximum number of iterations parameter [mxi] than on the convergence tolerance parameter [tol].<br>
-The number of iterations needed to reach the convergence tolerance increases for high values of the parameter lambda. The larger the total number of pixels of the input raster map the larger the number of iterations will be.
+The module computes the segmentation by means of an iterative
+procedure.<br>
+The module stops either when the number of iterations
+reaches the maximum number of iterations [mxi] or when the maximum
+difference between the solutions of two successive iterations is less than
+the convergence tolerance [tol].<br>
+To stop the iteration procedure,
+it is easier to act on the maximum number of iterations parameter [mxi]
+than on the convergence tolerance parameter [tol].<br>
+The number of
+iterations needed to reach the convergence tolerance increases for high
+values of the parameter lambda. The larger the total number of pixels
+of the input raster map the larger the number of iterations will be.
 <br><br>
 
-The data type of the output raster maps is DOUBLE PRECISION.
-<br><br>
+The data type of the output raster maps is DOUBLE PRECISION.  <br><br>
 
-The module works on one raster map at a time, imagery groups are not supported.
-<br><br>
+The module works on one raster map at a time, imagery groups are not
+supported.  <br><br>
 
-To avoid to inappropriately re-sampled the input raster map, the settings for the current region should be set so that:<br>
-- the resolution of the region matches the resolution of the input raster map;<br>
-- the boundaries of the region are lined up along the edges of the nearest cells in the input raster map. 
-<br><br>
+To avoid to inappropriately re-sampled the input raster map, the settings
+for the current region should be set so that:
+<ul>
+<li> the resolution of the region matches the resolution of the
+  input raster map;
+<li>the boundaries of the region are lined up along the edges of the nearest
+cells in the input raster map.
+</ul>
 
 The discontinuity thickness should be changed for test purposes only.
 <br><br>
 
 The actual need to use the MSK model should be very rare, see [3].
-Due to a different implementation of the MSK model with respect to MS one, the values of the parameters lambda and alpha in MSK have to be set independently from the values used in MS.
+Due to a different implementation of the MSK model with respect to MS
+one, the values of the parameters lambda and alpha in MSK have to be
+set independently from the values used in MS.
 
 <h2>EXAMPLE</h2>
 
-This example is based the <a href="http://grass.itc.it/download/data.php">North Carolina GRASS sample data set</a>, [complete GRASS location].
+This example is based the <a
+href="http://grass.osgeo.org/download/data.php">North Carolina GRASS sample
+data set</a>, [complete GRASS location].
 
 
 <div><pre class="code">
 # set the region to match the <em>ortho_2001_t792_1m</em> raster map:
-&nbsp g.region rast=ortho_2001_t792_1m
+g.region rast=ortho_2001_t792_1m
 #
 # select a smaller region:
-&nbsp g.region n=221725 s=220225 w=638350 e=639550
+g.region n=221725 s=220225 w=638350 e=639550
 #
 # run r.seg:
-&nbsp r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u_OF out_z=z_OF lambda=10 alpha=200 mxi=250
+r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u_OF out_z=z_OF lambda=10 alpha=200 mxi=250
 #
 # for a better visualization of the output raster map <em>u_OF</em>, set its color table to:
-&nbsp r.colors u_OF rast=ortho_2001_t792_1m
+r.colors u_OF rast=ortho_2001_t792_1m
 #
 # compute the difference between the input raster map and the output raster map <em>u_OF</em>:
-&nbsp r.mapcalc 'abs(ortho_2001_t792_1m at PERMANENT-u_OF)'
+r.mapcalc 'abs(ortho_2001_t792_1m at PERMANENT-u_OF)'
 #
 # for a better visualization of the differences, compute the natural logarithm of the <em>diff</em> map:
-&nbsp r.mapcalc 'log_diff=log(1+diff)'
+r.mapcalc 'log_diff=log(1+diff)'
 #
 # and set its color table to the "differences" style:
-&nbsp r.colors log_diff c=differences
+r.colors log_diff c=differences
 #
 # for a better visualization of the output raster map <em>u_OF</em>, set its color table to:
-&nbsp r.colors z_OF c=bgyr
+r.colors z_OF c=bgyr
 #
 # run r.seg with different parameter values:
-&nbsp r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u1_OF out_z=z1_OF lambda=10 alpha=65 mxi=250
-&nbsp r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u2_OF out_z=z2_OF lambda=10 alpha=600 mxi=250
-&nbsp r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u3_OF out_z=z3_OF lambda=0.1 alpha=200 mxi=250
-&nbsp r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u4_OF out_z=z4_OF lambda=1 alpha=200 mxi=250
+r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u1_OF out_z=z1_OF lambda=10 alpha=65 mxi=250
+r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u2_OF out_z=z2_OF lambda=10 alpha=600 mxi=250
+r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u3_OF out_z=z3_OF lambda=0.1 alpha=200 mxi=250
+r.seg in_g=ortho_2001_t792_1m at PERMANENT out_u=u4_OF out_z=z4_OF lambda=1 alpha=200 mxi=250
 #
 # visualize and compare the different results
 </pre></div>
 
-
 <h2>REFERENCE</h2>
 
-<ul>
-<li> <b>[1]</b> D. Mumford and J. Shah. <em>Optimal Approximation by Piecewise Smooth Functions and Associated Variational Problems</em>. <br> 
-Communications on Pure Applied Mathematics, 42:577.­685, 1989.
+<ul> <li> <b>[1]</b> D. Mumford and J. Shah. <em>Optimal Approximation by
+Piecewise Smooth Functions and Associated Variational Problems</em>. <br>
+Communications on Pure Applied Mathematics, 42:577-685, 1989.
 
-<li> <b>[2]</b> R. March and M. Dozio. <em>A variational method for the recovery of smooth boundaries</em>. <br> 
-Image and Vision Computing, 15:705­-712, 1997.
+<li> <b>[2]</b> R. March and M. Dozio. <em>A variational method for the
+recovery of smooth boundaries</em>. <br> Image and Vision Computing,
+15:705-712, 1997.
 
-<li> <b>[3]</b> A. Vitti. <em>Free discontinuity problems in image and signal segmentatiion</em>. <br> 
-Ph.D. Thesis - University of Trento (Italy), 2008. <br> 
-<a href="http://www.ing.unitn.it/~vittia/misc/vitti_phd.pdf">http://www.ing.unitn.it/~vittia/misc/vitti_phd.pdf</a>
+<li> <b>[3]</b> A. Vitti. <em>Free discontinuity
+problems in image and signal segmentatiion</em>. <br>
+Ph.D. Thesis - University of Trento (Italy), 2008. <br> <a
+href="http://www.ing.unitn.it/~vittia/misc/vitti_phd.pdf">http://www.ing.unitn.it/~vittia/misc/vitti_phd.pdf</a>
 </ul>
 
 
-<h2>SEE ALSO</h2>
-<em><a href="i.zc.html">i.zc</a></em>, 
-<em><a href="r.mfilter.html">r.mfilter</a></em>
+<h2>SEE ALSO</h2> <em><a href="i.zc.html">i.zc</a></em>, <em><a
+href="r.mfilter.html">r.mfilter</a></em>
 
 
-<h2>AUTHORS</h2>
-Alfonso Vitti <br> 
-&nbsp&nbsp Dept. Civil and Environmental Engineering <br>
-&nbsp&nbsp University of Trento - Italy<br>
-&nbsp&nbsp alfonso.vitti [at] ing.unitn.it
+<h2>AUTHORS</h2> Alfonso Vitti <br> &nbspDept. Civil and
+Environmental Engineering <br> &nbspUniversity of Trento - Italy<br>
+&nbspalfonso.vitti [at] ing.unitn.it
 
-<p><i>Last changed: $Date: 2010-08-10 12:00:00 +0200 (Tue, 10 Aug 2010)$</i>
+<p><i>Last changed: $Date: 2010-08-10 12:00:00 +0200 (Tue, 10 Aug
+2010)$</i>



More information about the grass-commit mailing list