IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2010, 2:59:19 PM (16 years ago)
Author:
eugene
Message:

update psf-convolved model fitting to be a bit more consistent with other psphot fitting, and a bit more flexible; fix the diff stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourcePhotometry.c

    r28643 r28687  
    390390# define FLUX_LIMIT 3.0
    391391
    392 // return source aperture magnitude
    393 bool pmSourceMeasureDiffStats (pmSource *source, psImageMaskType maskVal)
     392// measure stats that may be using in difference images for distinguishing real sources from bad residuals
     393bool pmSourceMeasureDiffStats (pmSource *source, psImageMaskType maskVal, psImageMaskType markVal)
    394394{
    395395    PS_ASSERT_PTR_NON_NULL(source, false);
     
    411411    for (int iy = 0; iy < flux->numRows; iy++) {
    412412        for (int ix = 0; ix < flux->numCols; ix++) {
     413            // only count up the stats in the unmarked region (ie, the aperture)
     414            if (mask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & markVal) {
     415                continue;
     416            }
    413417            if (mask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & maskVal) {
    414418                nMask ++;
Note: See TracChangeset for help on using the changeset viewer.