[GRASS-SVN] r70094 - grass-addons/grass7/imagery/i.superpixels.slic
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 18 10:03:43 PST 2016
Author: rashadkm
Date: 2016-12-18 10:03:43 -0800 (Sun, 18 Dec 2016)
New Revision: 70094
Modified:
grass-addons/grass7/imagery/i.superpixels.slic/main.c
Log:
use fmin() instead of min()
Modified: grass-addons/grass7/imagery/i.superpixels.slic/main.c
===================================================================
--- grass-addons/grass7/imagery/i.superpixels.slic/main.c 2016-12-18 17:46:17 UTC (rev 70093)
+++ grass-addons/grass7/imagery/i.superpixels.slic/main.c 2016-12-18 18:03:43 UTC (rev 70094)
@@ -511,7 +511,7 @@
if(hexgrid > 0 )
{
seedx = x*offset+(xoff<<(y&0x1))+xe;
- seedx = min(g_width-1,seedx);
+ seedx = fmin(double (g_width-1), seedx);
} //for hex grid sampling
int seedy = (y*offset+yoff+ye);
More information about the grass-commit
mailing list