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

scipy-svn@scip... scipy-svn@scip...
Thu Apr 3 20:01:58 CDT 2008


Author: tom.waite
Date: 2008-04-03 20:01:55 -0500 (Thu, 03 Apr 2008)
New Revision: 4079

Modified:
   trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c
Log:
Enhancements and bug fix to 3D blob extract.

Modified: trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c
===================================================================
--- trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c	2008-04-03 18:28:44 UTC (rev 4078)
+++ trunk/scipy/ndimage/src/segment/Segmenter_IMPL.c	2008-04-04 01:01:55 UTC (rev 4079)
@@ -496,6 +496,8 @@
 	    }
 	}
 
+	*groups = Label;
+
 	ptr = 0;
 	for(i = 0; i < layers; ++i){
 	    for(j = 0; j < rows; ++j){
@@ -720,7 +722,7 @@
 	float centerY;
 	float centerZ;
 
-	for(k = l; l < numberObjects; ++l){
+	for(l = 1; l < numberObjects; ++l){
 	    offset     = cols;
 	    LowX       = 32767;
 	    LowY       = 32767;



More information about the Scipy-svn mailing list