[GRASS-SVN] r52007 - grass-addons/grass7/imagery/i.segment

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 8 00:38:29 PDT 2012


Author: mmetz
Date: 2012-06-08 00:38:27 -0700 (Fri, 08 Jun 2012)
New Revision: 52007

Modified:
   grass-addons/grass7/imagery/i.segment/outline
Log:
add comments

Modified: grass-addons/grass7/imagery/i.segment/outline
===================================================================
--- grass-addons/grass7/imagery/i.segment/outline	2012-06-08 04:14:09 UTC (rev 52006)
+++ grass-addons/grass7/imagery/i.segment/outline	2012-06-08 07:38:27 UTC (rev 52007)
@@ -132,7 +132,9 @@
 */
 
 /* Similarity threshold T(t)... as t increases, threshold for similarity is lower. SPRING used: T(t) = T(0)alphat, where T(0) > ), t =0,1,2... and alpha <1 */
+/* MM: T(0) > ) ??? what exactly is t */
 
+
 For t  (until no merges are made?)
 
 	Set candidate flag to true/1 for all pixels
@@ -190,10 +192,13 @@
 Method 1: (using "rasters")
 
 Input could be single pixel or list of pixels.
+/* MM: what exactly is input? seeds? */
 
 Put input in "to be checked" stack
 Put input in "current segment" list
 put input in "don't check" list
+/* MM: you could also determine the status of each pixel on-the-fly when visiting this neighbor */
+
 empty "neighbor" list
 While "to be checked" stack isn't empty:
 	pop
@@ -212,6 +217,7 @@
 loop...
 
 return: neighbor list, pixels in segment list
+/* MM: what is the purpose of the neighbor list and the segment list? */
 
 neighbor list will be a listing of pixels that are neighbors?  Include segment numbers?  Only include unique segments?
 Maybe the most complete return would be a structure array, structure to include the segment ID and a list of points in it?  But the list of points would NOT be inclusive - just the points bordering the current segment...



More information about the grass-commit mailing list