[GRASS-SVN] r71938 - grass-addons/grass7/imagery/i.superpixels.slic
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 14 06:35:28 PST 2017
Author: mmetz
Date: 2017-12-14 06:35:28 -0800 (Thu, 14 Dec 2017)
New Revision: 71938
Modified:
grass-addons/grass7/imagery/i.superpixels.slic/main.c
Log:
i.superpixels.slic: adjust RAM calculation
Modified: grass-addons/grass7/imagery/i.superpixels.slic/main.c
===================================================================
--- grass-addons/grass7/imagery/i.superpixels.slic/main.c 2017-12-14 14:26:47 UTC (rev 71937)
+++ grass-addons/grass7/imagery/i.superpixels.slic/main.c 2017-12-14 14:35:28 UTC (rev 71938)
@@ -320,9 +320,7 @@
G_debug(1, "MB for temporary data: %g", segs_mb);
- all_mb = 3 * (sizeof(char **) * ((double) nrows / (1024. * 1024.)) +
- sizeof(char *) * ((double) nrows / 1024.) * ((double) ncols / 1024.)) +
- (sizeof(DCELL) * nbands + sizeof(double) * 2 + sizeof(int)) *
+ all_mb = (sizeof(DCELL) * nbands + sizeof(double) * 2 + sizeof(int)) *
((double) nrows / 1024.) * ((double) ncols / 1024.);
G_debug(1, "MB for all in RAM: %g", all_mb);
More information about the grass-commit
mailing list