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/pswarpTransformReadout.c

    r21183 r21323  
     1/** @file pswarpTransformReadout.c
     2 *
     3 *  @brief
     4 *
     5 *  @ingroup pswarp
     6 *
     7 *  @author IfA
     8 *  @version $Revision: 1.15 $ $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
    3 // NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT
     15/**
     16 * NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT
     17 */
    418bool pswarpTransformReadout(pmReadout *output, pmReadout *input, pmConfig *config)
    519{
    620    // XXX this implementation currently ignores the use of the region
    7     psImage *region = NULL;             // Region to transform
     21    psImage *region = NULL;             ///< Region to transform
    822
    923    psTimerStart("warp");
    1024
    1125    // Get warp parameters
    12     bool mdok;                          // Status of MD lookup
    13     int nGridX = psMetadataLookupS32(NULL, config->arguments, "GRID.NX"); // Number of grid points in x
    14     int nGridY = psMetadataLookupS32(NULL, config->arguments, "GRID.NY"); // Number of grid points in y
     26    bool mdok;                          ///< Status of MD lookup
     27    int nGridX = psMetadataLookupS32(NULL, config->arguments, "GRID.NX"); ///< Number of grid points in x
     28    int nGridY = psMetadataLookupS32(NULL, config->arguments, "GRID.NY"); ///< Number of grid points in y
    1529    psImageInterpolateMode interpolationMode = psMetadataLookupS32(NULL, config->arguments,
    16                                                                    "INTERPOLATION.MODE"); // Mode for interp
    17     int numKernels = psMetadataLookupS32(NULL, config->arguments, "INTERPOLATION.NUM"); // Number of kernels
     30                                                                   "INTERPOLATION.MODE"); ///< Mode for interp
     31    int numKernels = psMetadataLookupS32(NULL, config->arguments, "INTERPOLATION.NUM"); ///< Number of kernels
    1832
    1933    // load the recipe
     
    2741    psAssert(mdok, "MASK.INPUT was not defined");
    2842
    29     int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads
     43    int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); ///< Number of threads
    3044    if (!mdok) {
    3145        nThreads = 0;
    3246    }
    33     float poorFrac = psMetadataLookupF32(NULL, config->arguments, "POOR.FRAC"); // Flux fraction for "poor"
     47    float poorFrac = psMetadataLookupF32(NULL, config->arguments, "POOR.FRAC"); ///< Flux fraction for "poor"
    3448
    3549    // pswarpMapGridFromImage builds a set of locally-linear maps which convert the
     
    4256
    4357    // Get range of interest
    44     int xOutMin, xOutMax, yOutMin, yOutMax; // Output pixel range
     58    int xOutMin, xOutMax, yOutMin, yOutMax; ///< Output pixel range
    4559    pswarpMatchRange(&xOutMin, &yOutMin, &xOutMax, &yOutMax, input, output);
    4660
     
    5367    }
    5468
    55     int xGridMin = nGridX, xGridMax = 0, yGridMin = nGridY, yGridMax = 0; // Grid range
    56     int xGrid, yGrid;                   // Grid coordinates
     69    int xGridMin = nGridX, xGridMax = 0, yGridMin = nGridY, yGridMax = 0; ///< Grid range
     70    int xGrid, yGrid;                   ///< Grid coordinates
    5771    pswarpMapGridSetGrid(grid, xOutMin, yOutMin, &xGrid, &yGrid);
    5872    CHECK_GRID_RANGE();
     
    121135    psThreadJob *job = NULL;
    122136    int xMin = output->image->numCols, xMax = 0, yMin = output->image->numRows, yMax = 0; // Bounds
    123     int goodPixels = 0;                 // total number of good pixels across all tiles
     137    int goodPixels = 0;                 ///< total number of good pixels across all tiles
    124138    while ((job = psThreadJobGetDone()) != NULL) {
    125139        if (job->args->n < 1) {
Note: See TracChangeset for help on using the changeset viewer.