IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 4:03:13 PM (17 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/camera/pmFPAMaskWeight.h

    r24483 r25407  
    1515/// @addtogroup Camera Camera Layout
    1616/// @{
    17 
    18 #if 0
    19 /// Pixel mask values
    20 typedef enum {
    21     PM_MASK_CLEAR    = 0x00,            ///< The pixel is not masked
    22     PM_MASK_BLANK    = 0x01,            ///< The pixel is blank or has no (valid) data
    23     PM_MASK_FLAT     = 0x02,            ///< The pixel is non-positive in the flat-field
    24     PM_MASK_DETECTOR = 0x02,            ///< The detector pixel is bad (e.g., bad column, charge trap)
    25     PM_MASK_SAT      = 0x04,            ///< The pixel is saturated in the image of interest
    26     PM_MASK_BAD      = 0x04,            ///< The pixel is low in the image of interest
    27     PM_MASK_RANGE    = 0x04,            ///< The pixel is out of range in the image of interest
    28     PM_MASK_CR       = 0x08,            ///< The pixel is probably a CR
    29     PM_MASK_SPARE1   = 0x10,            ///< Spare mask value
    30     PM_MASK_SPARE2   = 0x20,            ///< Spare mask value
    31     PM_MASK_SUSPECT  = 0x40,            ///< The pixel is suspected of being bad, but may not be
    32     PM_MASK_MARK     = 0x80,            ///< The pixel is marked as temporarily ignored
    33 } pmMaskValue;
    34 #define PM_MASK_MARK 0x80            ///< The pixel is marked as temporarily ignored
    35 #define PM_MASK_SAT  0x04            ///< The pixel is saturated in the image of interest
    36 #endif
    3717
    3818/// Set a temporary readout mask using CELL.SATURATION and CELL.BAD
     
    5434/// can't be generated.
    5535bool pmReadoutSetVariance(pmReadout *readout, ///< Readout for which to set variance
    56                           const psImage *noiseMap, ///< 2D image of the read noise in DN
     36                          const psImage *noiseMap, ///< 2D image of the read noise in DN
    5737                          bool poisson    ///< Include poisson variance (in addition to read noise)?
    5838    );
     
    7353/// with HDU entry).  This is intended for most operations.
    7454bool pmReadoutGenerateVariance(pmReadout *readout, ///< Readout for which to generate variance
    75                           const psImage *noiseMap, ///< 2D image of the read noise in DN
     55                          const psImage *noiseMap, ///< 2D image of the read noise in DN
    7656                               bool poisson    ///< Include poisson variance (in addition to read noise)?
    7757    );
     
    8363                                   psImageMaskType sat, ///< Mask value to give saturated pixels
    8464                                   psImageMaskType bad, ///< Mask value to give bad (low) pixels
    85                                    const psImage *noiseMap, ///< 2D image of the read noise in DN
     65                                   const psImage *noiseMap, ///< 2D image of the read noise in DN
    8666                                   bool poisson ///< Include poisson variance (in addition to read noise)?
    8767    );
     
    9373                                psImageMaskType sat, ///< Mask value to give saturated pixels
    9474                                psImageMaskType bad, ///< Mask value to give bad (low) pixels
    95                                 const psImage *noiseMap, ///< 2D image of the read noise in DN
     75                                const psImage *noiseMap, ///< 2D image of the read noise in DN
    9676                                bool poisson ///< Include poisson variance (in addition to read noise)?
    9777    );
     
    10080///
    10181/// The variance map is adjusted so that the mean matches the actual pixel variance in the image
    102 bool pmReadoutVarianceRenormPixels(
    103     const pmReadout *readout,           ///< Readout to normalise
    104     psImageMaskType maskVal,                 ///< Value to mask
    105     psStatsOptions meanStat,            ///< Statistic to measure the mean (of the variance map)
    106     psStatsOptions stdevStat,           ///< Statistic to measure the stdev (of the image)
    107     psRandom *rng                       ///< Random number generator
    108     );
    109 
    110 /// Renormalise the variance map to match the actual photometry variance
    111 ///
    112 /// The variance map is adjusted so that the actual significance of fake sources matches the
    113 /// guestimated significance
    114 bool pmReadoutVarianceRenormPhot(
     82bool pmReadoutVarianceRenormalise(
    11583    const pmReadout *readout,           ///< Readout to normalise
    11684    psImageMaskType maskVal,            ///< Value to mask
    117     int num,                            ///< Number of instances to measure over the image
    118     float width,                        ///< Photometry width
    119     psStatsOptions meanStat,            ///< Statistic to measure the mean
    120     psStatsOptions stdevStat,           ///< Statistic to measure the stdev
    121     psRandom *rng                       ///< Random number generator
    122     );
    123 
    124 /// Renormalise the variance map to match the actual variance
    125 ///
    126 /// The variance in the image is measured in patches, and the variance map is adjusted so that the mean for
    127 /// that patch corresponds.
    128 bool pmReadoutVarianceRenorm(const pmReadout *readout, // Readout to normalise
    129                              psImageMaskType maskVal, // Value to mask
    130                              psStatsOptions meanStat, // Statistic to measure the mean (of the variance map)
    131                              psStatsOptions stdevStat, // Statistic to measure the stdev (of the image)
    132                              int width,   // Width of patch (pixels)
    133                              psRandom *rng // Random number generator (for sub-sampling images)
     85    int sample,                         ///< Sample size
     86    float minValid,                     ///< Minimum valid renormalisation, or NAN
     87    float maxValid                      ///< Maximum valid renormalisation, or NAN
    13488    );
    13589
Note: See TracChangeset for help on using the changeset viewer.