IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31988


Ignore:
Timestamp:
Aug 3, 2011, 8:57:37 AM (15 years ago)
Author:
eugene
Message:

subtract the model fits in the full window, not just the fit window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psphot/src/psphotFitSourcesLinear.c

    r31452 r31988  
    190190        pmModel *model = pmSourceGetModel (&isPSF, source);
    191191
     192        // clear the 'mark' pixels and remask on the fit aperture
    192193        psImageMaskPixels (source->maskObj, "AND", PS_NOT_IMAGE_MASK(markVal));
    193194        psImageKeepCircle (source->maskObj, source->peak->x, source->peak->y, model->fitRadius, "OR", markVal);
     
    348349        model->params->data.F32[PM_PAR_I0] = norm->data.F32[i];
    349350        model->dparams->data.F32[PM_PAR_I0] = errors->data.F32[i];
     351
     352        // clear the 'mark' pixels so the subtraction covers the full window
     353        psImageMaskPixels (source->maskObj, "AND", PS_NOT_IMAGE_MASK(markVal));
    350354
    351355        // subtract object
Note: See TracChangeset for help on using the changeset viewer.