[GRASS-SVN] r68473 - grass/trunk/imagery/i.segment
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 20 02:02:14 PDT 2016
Author: mlennert
Date: 2016-05-20 02:02:13 -0700 (Fri, 20 May 2016)
New Revision: 68473
Modified:
grass/trunk/imagery/i.segment/parse_args.c
Log:
i.segment: small correction of r68468 - 'else' was only linked to one if
Modified: grass/trunk/imagery/i.segment/parse_args.c
===================================================================
--- grass/trunk/imagery/i.segment/parse_args.c 2016-05-19 22:51:51 UTC (rev 68472)
+++ grass/trunk/imagery/i.segment/parse_args.c 2016-05-20 09:02:13 UTC (rev 68473)
@@ -155,9 +155,9 @@
/* segmentation methods: 1 = region growing */
if (strcmp(method->answer, "region_growing") == 0)
globals->method = region_growing;
- if (strcmp(method->answer, "mean_shift") == 0)
+ else if (strcmp(method->answer, "mean_shift") == 0)
globals->method = mean_shift;
- if (strcmp(method->answer, "watershed") == 0)
+ else if (strcmp(method->answer, "watershed") == 0)
globals->method = watershed;
else
G_fatal_error(_("Unable to assign segmentation method"));
More information about the grass-commit
mailing list