IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 10:25:50 AM (18 years ago)
Author:
eugene
Message:

re-org and cleanup of the mask bits to make it consistent with the pmConfigMaskSetBits concepts; ensure mark and mask are correctly used

File:
1 edited

Legend:

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

    r14655 r18555  
    77                                        // and a per-object radius is calculated)
    88
    9 bool psphotInitRadiusPSF(const psMetadata *recipe,
    10                          const pmModelType type)
    11 {
     9bool psphotInitRadiusPSF(const psMetadata *recipe, const pmModelType type) {
     10
    1211    bool status = true;
    1312
     
    2019
    2120// call this function whenever you (re)-define the PSF model
    22 bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model)
     21bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model, psMaskType markVal)
    2322{
    2423    psF32 *PAR = model->params->data.F32;
     
    4746
    4847    // set the mask to flag the excluded pixels
    49     psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);
     48    psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", markVal);
    5049    return status;
    5150}
    5251
    53 bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, float dR) {
     52bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, psMaskType markVal, float dR) {
    5453
    5554    psF32 *PAR = model->params->data.F32;
     
    6968
    7069    // set the mask to flag the excluded pixels
    71     psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);
     70    psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", markVal);
    7271    return status;
    7372}
     
    8786
    8887// call this function whenever you (re)-define the EXT model
    89 bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model) {
     88bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model, psMaskType markVal) {
    9089
    9190    psF32 *PAR = model->params->data.F32;
     
    102101
    103102    // set the mask to flag the excluded pixels
    104     psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);
     103    psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", markVal);
    105104    return status;
    106105}
Note: See TracChangeset for help on using the changeset viewer.