Changeset 9611 for trunk/psModules/src/imcombine/pmReadoutCombine.h
- Timestamp:
- Oct 17, 2006, 10:13:04 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmReadoutCombine.h (modified) (1 diff)
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 /// 13 16 14 #if !defined(PM_READOUT_COMBINE_H)17 #ifndef PM_READOUT_COMBINE_H 15 18 #define PM_READOUT_COMBINE_H 16 17 #if HAVE_CONFIG_H18 #include <config.h>19 #endif20 19 21 20 #include <pslib.h> 22 21 #include "pmFPA.h" 23 22 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. 26 27 typedef struct 27 28 { 28 psStatsOptions combine; // Statistic to use when performing the combination29 psMaskType maskVal; // Mask value30 int nKeep; // Mimimum number of pixels to keep31 float fracHigh; // Fraction of high pixels to immediately throw32 float fracLow; // Fraction of low pixels to immediately throw33 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) 35 36 } 36 37 pmCombineParams; 37 38 38 // Allocator 39 pmCombineParams *pmCombineParamsAlloc(psStatsOptions statsOptions // Statistic to use for combination39 // Allocator for pmCombineParams 40 pmCombineParams *pmCombineParamsAlloc(psStatsOptions statsOptions ///< Statistic to use for combination 40 41 ); 41 42 42 // Combine multiple readouts, applying zero and scale, with optional minmax clipping43 bool pmReadoutCombine(pmReadout *output,// Output readout; altered and returned44 psArray *inputs, //Array of input readouts (F32 image and weight, U8 mask)45 const psVector *zero, // Zero corrections to subtract from input, or NULL46 const psVector *scale, // Scale corrections to divide into input, or NULL47 pmCombineParams *params //Combination parameters43 /// Combine multiple readouts, applying zero and scale, with optional minmax clipping 44 bool 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 48 49 ); 49 50
Note:
See TracChangeset
for help on using the changeset viewer.
