Index: trunk/pswarp/src/pswarpTransformTile.c
===================================================================
--- trunk/pswarp/src/pswarpTransformTile.c	(revision 21183)
+++ trunk/pswarp/src/pswarpTransformTile.c	(revision 21323)
@@ -1,2 +1,14 @@
+/** @file pswarpTransformTile.c
+ *
+ *  @brief
+ *
+ *  @ingroup pswarp
+ *
+ *  @author IfA
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2009-02-05 20:44:04 $
+ *  Copyright 2009 Institute for Astronomy, University of Hawaii
+ */
+
 #include "pswarp.h"
 
@@ -36,12 +48,12 @@
 bool pswarpTransformTile(pswarpTransformTileArgs *args)
 {
-    psImage *inImage = args->input->image; // Input image
-    psImage *outImage = args->output->image; // Output image
+    psImage *inImage = args->input->image; ///< Input image
+    psImage *outImage = args->output->image; ///< Output image
 
-    int inNumCols = inImage->numCols, inNumRows = inImage->numRows; // Size of input image
-    int outNumCols = outImage->numCols, outNumRows = outImage->numRows; // Size of output image
-    int outCol0 = outImage->col0, outRow0 = outImage->row0; // Offset of output image
+    int inNumCols = inImage->numCols, inNumRows = inImage->numRows; ///< Size of input image
+    int outNumCols = outImage->numCols, outNumRows = outImage->numRows; ///< Size of output image
+    int outCol0 = outImage->col0, outRow0 = outImage->row0; ///< Offset of output image
 
-    psPlane minPt, maxPt;               // Minimum and maximum points for this tile
+    psPlane minPt, maxPt;               ///< Minimum and maximum points for this tile
     pswarpMapGridCoordRange(args->grid, args->gridX, args->gridY, &minPt, &maxPt);
 
@@ -52,8 +64,8 @@
     psImageMaskType **inMaskData  = (args->input->mask)    ? args->input->mask->data.PS_TYPE_IMAGE_MASK_DATA : NULL;
 
-    pswarpMap *map = args->grid->maps[args->gridX][args->gridY]; // Map for this tile
-    psImage *region = args->region;     // Region to transform
+    pswarpMap *map = args->grid->maps[args->gridX][args->gridY]; ///< Map for this tile
+    psImage *region = args->region;     ///< Region to transform
 
-    // Bounds for iteration
+    /** Bounds for iteration */
     int xMin = PS_MAX(minPt.x, 0);
     int xMax = PS_MIN(maxPt.x, outNumCols);
@@ -62,5 +74,5 @@
 
     // Iterate over the output image pixels (parent frame)
-    long goodPixels = 0;                // Number of input pixels landing on the output image
+    long goodPixels = 0;                ///< Number of input pixels landing on the output image
     for (int y = yMin; y < yMax; y++) {
         for (int x = xMin; x < xMax; x++) {
@@ -80,7 +92,9 @@
             }
 
+	    double imageValue, varValue; // Value of image and variance map
+
             // psImagePixelInterpolate determines the value at pixel coordinate (x,y) in child coordinates
-            double imageValue, varValue; // Value of image and variance map
             psImageMaskType maskValue = inMaskData ? inMaskData[(int)yIn][(int)xIn] : 0; // Value of mask
+
             if (!psImageInterpolate(&imageValue, &varValue, &maskValue, xIn, yIn, args->interp)) {
                 psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image.");
@@ -88,5 +102,5 @@
             }
 
-            int xOut = x - outCol0, yOut = y - outRow0; // Position on output image
+            int xOut = x - outCol0, yOut = y - outRow0; ///< Position on output image
 
             if (outImageData) {
