IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 17, 2006, 10:13:04 AM (20 years ago)
Author:
Paul Price
Message:

Documenting pmReadoutCombine.[ch]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.h

    r7256 r9611  
    1 /** @file  pmReadoutCombine.h
    2  *
    3  *  This file will contain a module which will combine multiple readout images.
    4  *
    5  *  @author GLG, MHPCC
    6  *
    7  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-06-01 02:26:32 $
    9  *
    10  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    11  *
    12  */
     1/// @file  pmReadoutCombine.h
     2///
     3/// @brief Combine multiple readouts
     4///
     5/// @ingroup Image combination
     6///
     7/// @author George Gusciora, MHPCC
     8/// @author Paul Price, IfA
     9///
     10/// @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     11/// @date $Date: 2006-10-17 20:13:04 $
     12///
     13/// Copyright 2004-2006 Institute for Astronomy, University of Hawaii
     14///
     15///
    1316
    14 #if !defined(PM_READOUT_COMBINE_H)
     17#ifndef PM_READOUT_COMBINE_H
    1518#define PM_READOUT_COMBINE_H
    16 
    17 #if HAVE_CONFIG_H
    18 #include <config.h>
    19 #endif
    2019
    2120#include <pslib.h>
    2221#include "pmFPA.h"
    2322
    24 // Combination parameters for pmReadoutCombine.  These values define how the combination is performed, and
    25 // should not vary by detector, so that it can be re-used for multiple combinations.
     23/// Combination parameters for pmReadoutCombine.
     24///
     25/// These values define how the combination is performed, and should not vary by detector, so that it can be
     26/// re-used for multiple combinations.
    2627typedef struct
    2728{
    28     psStatsOptions combine;             // Statistic to use when performing the combination
    29     psMaskType maskVal;                 // Mask value
    30     int nKeep;                          // Mimimum number of pixels to keep
    31     float fracHigh;                     // Fraction of high pixels to immediately throw
    32     float fracLow;                      // Fraction of low pixels to immediately throw
    33     int iter;                           // Number of iterations for clipping (for CLIPPED_MEAN only)
    34     float rej;                          // Rejection threshould for clipping (for CLIPPED_MEAN only)
     29    psStatsOptions combine;             ///< Statistic to use when performing the combination
     30    psMaskType maskVal;                 ///< Mask value
     31    int nKeep;                          ///< Mimimum number of pixels to keep
     32    float fracHigh;                     ///< Fraction of high pixels to immediately throw
     33    float fracLow;                      ///< Fraction of low pixels to immediately throw
     34    int iter;                           ///< Number of iterations for clipping (for CLIPPED_MEAN only)
     35    float rej;                          ///< Rejection threshould for clipping (for CLIPPED_MEAN only)
    3536}
    3637pmCombineParams;
    3738
    38 // Allocator
    39 pmCombineParams *pmCombineParamsAlloc(psStatsOptions statsOptions // Statistic to use for combination
     39// Allocator for pmCombineParams
     40pmCombineParams *pmCombineParamsAlloc(psStatsOptions statsOptions ///< Statistic to use for combination
    4041                                     );
    4142
    42 // Combine multiple readouts, applying zero and scale, with optional minmax clipping
    43 bool pmReadoutCombine(pmReadout *output,// Output readout; altered and returned
    44                       psArray *inputs,  // Array of input readouts (F32 image and weight, U8 mask)
    45                       const psVector *zero, // Zero corrections to subtract from input, or NULL
    46                       const psVector *scale, // Scale corrections to divide into input, or NULL
    47                       pmCombineParams *params // Combination parameters
     43/// Combine multiple readouts, applying zero and scale, with optional minmax clipping
     44bool pmReadoutCombine(pmReadout *output,///< Output readout; altered and returned
     45                      const psArray *inputs,  ///< Array of input readouts (F32 image and weight, U8 mask)
     46                      const psVector *zero, ///< Zero corrections to subtract from input, or NULL
     47                      const psVector *scale, ///< Scale corrections to divide into input, or NULL
     48                      const pmCombineParams *params ///< Combination parameters
    4849                     );
    4950
Note: See TracChangeset for help on using the changeset viewer.