IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2009, 4:15:24 PM (17 years ago)
Author:
Paul Price
Message:

Reworking the variance renormalisation, following Gene's code from ppSubVarianceRescale.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMaskWeight.h

    r25116 r25372  
    8080///
    8181/// The variance map is adjusted so that the mean matches the actual pixel variance in the image
    82 bool pmReadoutVarianceRenormPixels(
    83     const pmReadout *readout,           ///< Readout to normalise
    84     psImageMaskType maskVal,                 ///< Value to mask
    85     psStatsOptions meanStat,            ///< Statistic to measure the mean (of the variance map)
    86     psStatsOptions stdevStat,           ///< Statistic to measure the stdev (of the image)
    87     psRandom *rng                       ///< Random number generator
    88     );
    89 
    90 /// Renormalise the variance map to match the actual photometry variance
    91 ///
    92 /// The variance map is adjusted so that the actual significance of fake sources matches the
    93 /// guestimated significance
    94 bool pmReadoutVarianceRenormPhot(
     82bool pmReadoutVarianceRenormalise(
    9583    const pmReadout *readout,           ///< Readout to normalise
    9684    psImageMaskType maskVal,            ///< Value to mask
    97     int num,                            ///< Number of instances to measure over the image
    98     float width,                        ///< Photometry width
    99     psStatsOptions meanStat,            ///< Statistic to measure the mean
    100     psStatsOptions stdevStat,           ///< Statistic to measure the stdev
    101     psRandom *rng                       ///< Random number generator
    102     );
    103 
    104 /// Renormalise the variance map to match the actual variance
    105 ///
    106 /// The variance in the image is measured in patches, and the variance map is adjusted so that the mean for
    107 /// that patch corresponds.
    108 bool pmReadoutVarianceRenorm(const pmReadout *readout, // Readout to normalise
    109                              psImageMaskType maskVal, // Value to mask
    110                              psStatsOptions meanStat, // Statistic to measure the mean (of the variance map)
    111                              psStatsOptions stdevStat, // Statistic to measure the stdev (of the image)
    112                              int width,   // Width of patch (pixels)
    113                              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
    11488    );
    11589
Note: See TracChangeset for help on using the changeset viewer.