IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:40:44 PM (19 years ago)
Author:
Paul Price
Message:

Extensive changes to APIs to allow use of a nominated value to mask
against (the maskVal). Previously, the mask values were either
hard-coded (e.g., PM_MASK_SAT) or taken as anything non-zero. The
code is tested with psModules (which has similar changes) and does not
crash, but neither is it successful in marking all bad pixels. For
this reason, I have left the "gutter" pixels (cell gaps) set to 0
instead of NAN in pmFPAMosaic.

File:
1 edited

Legend:

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

    r13806 r13900  
    11# include "psphotInternal.h"
    22
    3 bool psphotMakeResiduals (psArray *sources, psMetadata *recipe, pmPSF *psf) {
     3bool psphotMakeResiduals (psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType maskVal) {
    44
    55    bool status, isPSF;
     
    9494        psImage *weight = psImageCopy (NULL, source->weight,   PS_TYPE_F32);
    9595        psImage *mask   = psImageCopy (NULL, source->maskView, PS_TYPE_U8);
    96         pmModelSub (image, mask, model, PM_MODEL_OP_FUNC);
     96        pmModelSub (image, mask, model, PM_MODEL_OP_FUNC, maskVal);
    9797
    9898        // re-normalize image and weight
Note: See TracChangeset for help on using the changeset viewer.