IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 10:44:04 AM (17 years ago)
Author:
eugene
Message:

merging Doxygen comments by Bill G from eam_branch_20081230

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpTransformTile.c

    r21183 r21323  
     1/** @file pswarpTransformTile.c
     2 *
     3 *  @brief
     4 *
     5 *  @ingroup pswarp
     6 *
     7 *  @author IfA
     8 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-05 20:44:04 $
     10 *  Copyright 2009 Institute for Astronomy, University of Hawaii
     11 */
     12
    113#include "pswarp.h"
    214
     
    3648bool pswarpTransformTile(pswarpTransformTileArgs *args)
    3749{
    38     psImage *inImage = args->input->image; // Input image
    39     psImage *outImage = args->output->image; // Output image
     50    psImage *inImage = args->input->image; ///< Input image
     51    psImage *outImage = args->output->image; ///< Output image
    4052
    41     int inNumCols = inImage->numCols, inNumRows = inImage->numRows; // Size of input image
    42     int outNumCols = outImage->numCols, outNumRows = outImage->numRows; // Size of output image
    43     int outCol0 = outImage->col0, outRow0 = outImage->row0; // Offset of output image
     53    int inNumCols = inImage->numCols, inNumRows = inImage->numRows; ///< Size of input image
     54    int outNumCols = outImage->numCols, outNumRows = outImage->numRows; ///< Size of output image
     55    int outCol0 = outImage->col0, outRow0 = outImage->row0; ///< Offset of output image
    4456
    45     psPlane minPt, maxPt;               // Minimum and maximum points for this tile
     57    psPlane minPt, maxPt;               ///< Minimum and maximum points for this tile
    4658    pswarpMapGridCoordRange(args->grid, args->gridX, args->gridY, &minPt, &maxPt);
    4759
     
    5264    psImageMaskType **inMaskData  = (args->input->mask)    ? args->input->mask->data.PS_TYPE_IMAGE_MASK_DATA : NULL;
    5365
    54     pswarpMap *map = args->grid->maps[args->gridX][args->gridY]; // Map for this tile
    55     psImage *region = args->region;     // Region to transform
     66    pswarpMap *map = args->grid->maps[args->gridX][args->gridY]; ///< Map for this tile
     67    psImage *region = args->region;     ///< Region to transform
    5668
    57     // Bounds for iteration
     69    /** Bounds for iteration */
    5870    int xMin = PS_MAX(minPt.x, 0);
    5971    int xMax = PS_MIN(maxPt.x, outNumCols);
     
    6274
    6375    // Iterate over the output image pixels (parent frame)
    64     long goodPixels = 0;                // Number of input pixels landing on the output image
     76    long goodPixels = 0;                ///< Number of input pixels landing on the output image
    6577    for (int y = yMin; y < yMax; y++) {
    6678        for (int x = xMin; x < xMax; x++) {
     
    8092            }
    8193
     94            double imageValue, varValue; // Value of image and variance map
     95
    8296            // psImagePixelInterpolate determines the value at pixel coordinate (x,y) in child coordinates
    83             double imageValue, varValue; // Value of image and variance map
    8497            psImageMaskType maskValue = inMaskData ? inMaskData[(int)yIn][(int)xIn] : 0; // Value of mask
     98
    8599            if (!psImageInterpolate(&imageValue, &varValue, &maskValue, xIn, yIn, args->interp)) {
    86100                psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image.");
     
    88102            }
    89103
    90             int xOut = x - outCol0, yOut = y - outRow0; // Position on output image
     104            int xOut = x - outCol0, yOut = y - outRow0; ///< Position on output image
    91105
    92106            if (outImageData) {
Note: See TracChangeset for help on using the changeset viewer.