[GRASS-SVN] r64400 - grass/trunk/imagery/i.segment

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 2 07:18:01 PST 2015


Author: madi
Date: 2015-02-02 07:18:01 -0800 (Mon, 02 Feb 2015)
New Revision: 64400

Modified:
   grass/trunk/imagery/i.segment/parse_args.c
Log:
updating error message since threshold values 0 or 1 are not valid options (ticket #2575)

Modified: grass/trunk/imagery/i.segment/parse_args.c
===================================================================
--- grass/trunk/imagery/i.segment/parse_args.c	2015-02-02 15:14:35 UTC (rev 64399)
+++ grass/trunk/imagery/i.segment/parse_args.c	2015-02-02 15:18:01 UTC (rev 64400)
@@ -150,7 +150,7 @@
     globals->alpha = atof(threshold->answer);
 
     if (globals->alpha <= 0 || globals->alpha >= 1)
-	G_fatal_error(_("Threshold should be >= 0 and <= 1"));
+	G_fatal_error(_("Threshold should be > 0 and < 1"));
 
     /* segmentation methods:  1 = region growing */
     if (strcmp(method->answer, "region_growing") == 0)



More information about the grass-commit mailing list