[Scipy-svn] r4069 - trunk/scipy/ndimage/src/segment
scipy-svn at scipy.org
scipy-svn at scipy.org
Tue Apr 1 21:41:46 EDT 2008
Author: tom.waite
Date: 2008-04-01 20:41:42 -0500 (Tue, 01 Apr 2008)
New Revision: 4069
Modified:
trunk/scipy/ndimage/src/segment/Segmenter_EXT.c
Log:
additional 3D processing
Modified: trunk/scipy/ndimage/src/segment/Segmenter_EXT.c
===================================================================
--- trunk/scipy/ndimage/src/segment/Segmenter_EXT.c 2008-04-02 01:41:14 UTC (rev 4068)
+++ trunk/scipy/ndimage/src/segment/Segmenter_EXT.c 2008-04-02 01:41:42 UTC (rev 4069)
@@ -218,8 +218,15 @@
/* need to pass in 2D/3D flag and mask. NI_GetBlobRegions will call
* 2D or 3D blob_extraction */
- if(!NI_GetBlobRegions((int)dims[0], (int)dims[1], (int)objNumber[0], fP1, myData))
- goto exit;
+ if(nd == 2){
+ if(!NI_GetBlobRegions2D((int)dims[0], (int)dims[1], (int)objNumber[0], fP1, myData))
+ goto exit;
+ }
+ else if(nd == 3){
+ if(!NI_GetBlobRegions3D((int)dims[0], (int)dims[1], (int)dims[2],
+ (int)objNumber[0], fP1, myData))
+ goto exit;
+ }
exit:
More information about the Scipy-svn
mailing list