Index: /branches/pap_branch_20090128/pswarp/src/pswarpTransformReadout.c
===================================================================
--- /branches/pap_branch_20090128/pswarp/src/pswarpTransformReadout.c	(revision 21231)
+++ /branches/pap_branch_20090128/pswarp/src/pswarpTransformReadout.c	(revision 21232)
@@ -35,5 +35,5 @@
     // pswarpMapGridFromImage builds a set of locally-linear maps which convert the
     // output coordinates to input coordinates
-    pswarpMapGrid *grid = pswarpMapGridFromImage(input, output, nGridX, nGridY);
+    pswarpMapGrid *grid = pswarpMapGridFromImage(output, input, nGridX, nGridY);
 
     // XXX optionally modify the grid based on this result and force the maxError < XXX
