[Scipy-svn] r3949 - trunk/scipy/ndimage/src/register

scipy-svn@scip... scipy-svn@scip...
Tue Feb 19 19:35:08 CST 2008


Author: tom.waite
Date: 2008-02-19 19:35:04 -0600 (Tue, 19 Feb 2008)
New Revision: 3949

Modified:
   trunk/scipy/ndimage/src/register/Register_IMPL.c
Log:
Fixed resample bug in tri_cubic_convolve function.

Modified: trunk/scipy/ndimage/src/register/Register_IMPL.c
===================================================================
--- trunk/scipy/ndimage/src/register/Register_IMPL.c	2008-02-19 21:13:12 UTC (rev 3948)
+++ trunk/scipy/ndimage/src/register/Register_IMPL.c	2008-02-20 01:35:04 UTC (rev 3949)
@@ -75,7 +75,7 @@
 	    } 
 	}
 	/* interpolate across 4 layers */
-	if(R > D){
+	if(L > D){
 	    Y[0] = NewLayer[0];
 	    Y[1] = NewLayer[1];
 	    Y[2] = NewLayer[2];
@@ -83,7 +83,7 @@
 	    ps1  = Y[2] - Y[0];
 	    ps2  = (float)2.0*(Y[0] - Y[1]) + Y[2] - Y[3];
 	    ps3  = -Y[0] + Y[1] - Y[2] + Y[3];
-	    T    = (Y[1]+R*(ps1+R*(ps2+R*ps3)));
+	    T    = (Y[1]+L*(ps1+L*(ps2+L*ps3)));
 	    valueXYZ = T;
 	}
 	else{



More information about the Scipy-svn mailing list