[Scipy-svn] r4450 - trunk/scipy/ndimage

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Jun 18 19:13:07 EDT 2008


Author: tom.waite
Date: 2008-06-18 18:13:03 -0500 (Wed, 18 Jun 2008)
New Revision: 4450

Modified:
   trunk/scipy/ndimage/_registration.py
Log:
fixed axis bug in build_fwhm method

Modified: trunk/scipy/ndimage/_registration.py
===================================================================
--- trunk/scipy/ndimage/_registration.py	2008-06-18 22:36:32 UTC (rev 4449)
+++ trunk/scipy/ndimage/_registration.py	2008-06-18 23:13:03 UTC (rev 4450)
@@ -565,7 +565,7 @@
     # M contains the voxel to physical mapping
     view_3x3 = np.square(M[0:3, 0:3])
     # sum the elements in the first row
-    vxg = np.sqrt(view_3x3.sum(axis=0))
+    vxg = np.sqrt(view_3x3.sum(axis=1))
     # assumes that voxel sampling is the same for xyz as S is the step
     size = np.array([1,1,1])*S[0]
     x = np.square(size) - np.square(vxg)




More information about the Scipy-svn mailing list