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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 11 00:59:44 PDT 2012


Author: mmetz
Date: 2012-09-11 00:59:44 -0700 (Tue, 11 Sep 2012)
New Revision: 53161

Modified:
   grass-addons/grass7/imagery/i.segment.xl/parse_args.c
Log:
i.segment.xl bugfix

Modified: grass-addons/grass7/imagery/i.segment.xl/parse_args.c
===================================================================
--- grass-addons/grass7/imagery/i.segment.xl/parse_args.c	2012-09-11 06:17:49 UTC (rev 53160)
+++ grass-addons/grass7/imagery/i.segment.xl/parse_args.c	2012-09-11 07:59:44 UTC (rev 53161)
@@ -111,7 +111,7 @@
     /* Note: this threshold is scaled after we know more at the beginning of create_isegs() */
     globals->alpha = atof(threshold->answer);
 
-    if (globals->threshold <= 0 || globals->threshold >= 1)
+    if (globals->alpha <= 0 || globals->alpha >= 1)
 	G_fatal_error(_("threshold should be >= 0 and <= 1"));
 
     /* segmentation methods:  1 = region growing */



More information about the grass-commit mailing list