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

    r21183 r21323  
     1/** @file pswarpPixelFraction.c
     2 *
     3 *  @brief
     4 *
     5 *  @ingroup pswarp
     6 *
     7 *  @author IfA
     8 *  @version $Revision: 1.6 $ $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#ifdef HAVE_CONFIG_H
    214#include <config.h>
     
    3042    bool status;
    3143
    32     float minFrac = psMetadataLookupF32(NULL, config->arguments, "ACCEPT.FRAC"); // Minimum fraction
     44    float minFrac = psMetadataLookupF32(NULL, config->arguments, "ACCEPT.FRAC"); ///< Minimum fraction
    3345
    3446    // load the recipe
     
    4355    psAssert (status, "MASK.OUTPUT was not defined");
    4456
    45     psImage *image = readout->image;    // Image of interest
    46     psImage *mask = readout->mask;      // Mask image
     57    psImage *image = readout->image;    ///< Image of interest
     58    psImage *mask = readout->mask;      ///< Mask image
    4759
    48     int numCols = image->numCols, numRows = image->numRows; // Size of image
     60    int numCols = image->numCols, numRows = image->numRows; ///< Size of image
    4961    long numPix = numCols * numRows;
    5062
     
    5264    int xMin = INT_MAX, xMax = -INT_MAX, yMin = INT_MAX, yMax = -INT_MAX;
    5365
    54     long numBad = 0;                     // Number of bad pixels
     66    long numBad = 0;                     ///< Number of bad pixels
    5567    for (int y = 0; y < numRows; y++) {
    5668        for (int x = 0; x < numCols; x++) {
     
    7486    }
    7587
    76     float goodFrac = (numPix - numBad) / (float)numPix; // Fraction of good pixels
    77     bool accept = (goodFrac >= minFrac ? true : false); // Accept this readout?
     88    float goodFrac = (numPix - numBad) / (float)numPix; ///< Fraction of good pixels
     89    bool accept = (goodFrac >= minFrac ? true : false); ///< Accept this readout?
    7890
    7991    if (stats) {
Note: See TracChangeset for help on using the changeset viewer.