IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18440


Ignore:
Timestamp:
Jul 9, 2008, 10:11:17 AM (18 years ago)
Author:
eugene
Message:

mods to markVal

File:
1 edited

Legend:

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

    r13035 r18440  
    66// XXX eventually, we should be able to do this with linear fitting...
    77// XXX UNUSED
    8 bool psphotWeightBias (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf) {
     8bool psphotWeightBias (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType markVal) {
    99
    1010    int Nfit = 0;
     
    6666
    6767        // extend source radius as needed
    68         psphotCheckRadiusPSF (readout, source, PSF);
     68        psphotCheckRadiusPSF (readout, source, PSF, markVal);
    6969
    7070        x = PSF->params->data.F32[2];
     
    7272
    7373        // fit PSF model (set/unset the pixel mask)
    74         psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "OR", PM_MASK_MARK);
     74        psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "OR", markVal);
    7575        pmSourceFitModel (source, PSF, PM_SOURCE_FIT_NORM);
    76         psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "AND", PS_NOT_U8(PM_MASK_MARK));
     76        psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "AND", PS_NOT_U8(markVal));
    7777
    7878        // re-subtract PSF for object, leave local sky
Note: See TracChangeset for help on using the changeset viewer.