[GRASS-SVN] r68896 - sandbox/bo/i.segment.gsoc2016/i.segment
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 8 08:38:03 PDT 2016
Author: hao2309
Date: 2016-07-08 08:38:03 -0700 (Fri, 08 Jul 2016)
New Revision: 68896
Modified:
sandbox/bo/i.segment.gsoc2016/i.segment/mean_shift.c
Log:
fixed diag condition
Modified: sandbox/bo/i.segment.gsoc2016/i.segment/mean_shift.c
===================================================================
--- sandbox/bo/i.segment.gsoc2016/i.segment/mean_shift.c 2016-07-08 15:32:54 UTC (rev 68895)
+++ sandbox/bo/i.segment.gsoc2016/i.segment/mean_shift.c 2016-07-08 15:38:03 UTC (rev 68896)
@@ -70,12 +70,7 @@
ncols = globals->col_max;
/* four pixel neighborhood or diagonal (3x3) pixel neighborhood */
- if (globals->nn = 4){
- diag = 0;
- }
- else if (globals->nn = 8){
- diag = 1;
- }
+ diag = globals->nn == 8;
thresh2 = threshold * threshold;
More information about the grass-commit
mailing list