[GRASS-SVN] r57074 - grass/trunk/imagery/i.segment
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 12 12:58:10 PDT 2013
Author: mmetz
Date: 2013-07-12 12:58:10 -0700 (Fri, 12 Jul 2013)
New Revision: 57074
Modified:
grass/trunk/imagery/i.segment/open_files.c
Log:
i.segment: fix -w flag
Modified: grass/trunk/imagery/i.segment/open_files.c
===================================================================
--- grass/trunk/imagery/i.segment/open_files.c 2013-07-12 09:25:37 UTC (rev 57073)
+++ grass/trunk/imagery/i.segment/open_files.c 2013-07-12 19:58:10 UTC (rev 57074)
@@ -61,6 +61,7 @@
/* Get min/max values of each input raster for scaling */
globals->max_diff = 0.;
+ globals->nbands = Ref.nfiles;
for (n = 0; n < Ref.nfiles; n++) {
/* returns -1 on error, 2 on empty range, quiting either way. */
@@ -86,8 +87,6 @@
/* ********** find out file segmentation size ************ */
G_debug(1, "Calculate temp file sizes...");
- globals->nbands = Ref.nfiles;
-
/* size of each element to be stored */
inlen = sizeof(DCELL) * Ref.nfiles;
More information about the grass-commit
mailing list