Index: trunk/pois/src/poisConvolveImage.c
===================================================================
--- trunk/pois/src/poisConvolveImage.c	(revision 3792)
+++ trunk/pois/src/poisConvolveImage.c	(revision 3801)
@@ -21,9 +21,7 @@
     int nx = input->numCols;		// The size of the image in x
     int ny = input->numRows;		// The size of the image in y
-    float nxHalf = 0.5 * (float)nx;	// Half the size of the image
-    float nyHalf = 0.5 * (float)ny;	// Half the size of the image
     int xKernel = config->xKernel;	// The half-size of the kernel in x
     int yKernel = config->yKernel;	// The half-size of the kernel in y
-    float background = solution->data.F64[solution->n-1]; // The difference in background
+    float background = solution->data.F64[solution->n - 1]; // The difference in background
     int numParams = kernelParams->n;	// Number of kernel parameters
 
@@ -45,6 +43,8 @@
 		double conv = background; // Convolved value
 
+#if 0
 		float imageX = (x - nxHalf) / nxHalf; // Normalised position in x
 		float imageY = (y - nyHalf) / nyHalf; // Normalised position in y
+#endif
 		
 		// Iterate over the kernel basis functions
@@ -53,8 +53,8 @@
 		    int u = kernel->u;
 		    int v = kernel->v;
+		    
+#if 0
 		    int xOrder = kernel->xOrder;
 		    int yOrder = kernel->yOrder;
-		    
-#if 0
 		    // Evaluate the polynomial
 		    poly->mask[xOrder][yOrder] = 0;
