[Scipy-svn] r4166 - trunk/scipy/ndimage/src/segment

scipy-svn@scip... scipy-svn@scip...
Tue Apr 22 03:45:30 CDT 2008


Author: cdavid
Date: 2008-04-22 03:45:27 -0500 (Tue, 22 Apr 2008)
New Revision: 4166

Modified:
   trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c
Log:
Do not use C99-style declaration after first statement: VS 2003 does not support it for C files.

Modified: trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c
===================================================================
--- trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c	2008-04-22 08:37:22 UTC (rev 4165)
+++ trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c	2008-04-22 08:45:27 UTC (rev 4166)
@@ -1372,10 +1372,11 @@
 	int number_kernels;
 	int kernel_size;
 	int filters;
+        int aperature;
         number_kernels = lawsFilter.numberKernels;
         kernel_size = lawsFilter.kernelLength;
         filters = lawsFilter.numberFilterLayers;
-	int aperature = (kernel_size-1)/2;
+	aperature = (kernel_size-1)/2;
 
 	computeLaws(lawsFilter, aperature, rows, cols, mask, lawsImage, src_image);
 



More information about the Scipy-svn mailing list