IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2007, 3:35:50 PM (19 years ago)
Author:
eugene
Message:

incorporating changes from eam_02_branch (pmSourceAdd/Sub, modified API for pmModelAdd, cached models)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotChoosePSF.c

    r13011 r13035  
    239239
    240240            // set the mask and subtract the PSF model
    241             psImageKeepCircle (source->mask, x, y, RADIUS, "OR", PM_MASK_MARK);
    242             pmModelSub (source->pixels, source->mask, source->modelPSF, false, false);
    243             psImageKeepCircle (source->mask, x, y, RADIUS, "AND", PS_NOT_U8(PM_MASK_MARK));
     241            // XXX should we be using maskObj? should we be unsetting the mask?
     242            // use pmModelSub because modelFlux has not been generated
     243            assert (source->maskObj);
     244            psImageKeepCircle (source->maskObj, x, y, RADIUS, "OR", PM_MASK_MARK);
     245            pmModelSub (source->pixels, source->maskObj, source->modelPSF, PM_MODEL_OP_FULL);
     246            psImageKeepCircle (source->maskObj, x, y, RADIUS, "AND", PS_NOT_U8(PM_MASK_MARK));
    244247        }
    245248
Note: See TracChangeset for help on using the changeset viewer.