IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:22:26 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 under psphot (which has similar changes) and does not
crash, but neither is it successful in marking all bad pixels (EAM
will investigate). 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/psModules/src/objects/pmModel.h

    r13803 r13898  
    55 * @author EAM, IfA
    66 *
    7  * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-06-13 23:41:51 $
     7 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-06-20 02:22:26 $
    99 *
    1010 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030
    3131typedef enum {
    32     PM_MODEL_OP_NONE    = 0x00,
    33     PM_MODEL_OP_FUNC    = 0x01,
    34     PM_MODEL_OP_RES0    = 0x02,
    35     PM_MODEL_OP_RES1    = 0x04,
     32    PM_MODEL_OP_NONE    = 0x00,
     33    PM_MODEL_OP_FUNC    = 0x01,
     34    PM_MODEL_OP_RES0    = 0x02,
     35    PM_MODEL_OP_RES1    = 0x04,
    3636    PM_MODEL_OP_FULL    = 0x07,
    37     PM_MODEL_OP_SKY     = 0x08,
     37    PM_MODEL_OP_SKY     = 0x08,
    3838    PM_MODEL_OP_CENTER  = 0x10,
    39     PM_MODEL_OP_NORM    = 0x20,
    40     PM_MODEL_OP_NOISE   = 0x40,
     39    PM_MODEL_OP_NORM    = 0x20,
     40    PM_MODEL_OP_NOISE   = 0x40,
    4141} pmModelOpMode;
    4242
     
    5252typedef struct
    5353{
    54     pmModelType type;                   ///< Model to be used.
    55     psVector *params;                   ///< Paramater values.
    56     psVector *dparams;                  ///< Parameter errors.
    57     float chisq;                        ///< Fit chi-squared.
    58     float chisqNorm;                    ///< re-normalized fit chi-squared.
    59     int nDOF;                           ///< number of degrees of freedom
    60     int nIter;                          ///< number of iterations to reach min
    61     pmModelStatus flags;                ///< model status flags
    62     float radiusFit;                    ///< fit radius actually used
    63     pmResiduals *residuals;             ///< normalized PSF residuals
     54    pmModelType type;                   ///< Model to be used.
     55    psVector *params;                   ///< Paramater values.
     56    psVector *dparams;                  ///< Parameter errors.
     57    float chisq;                        ///< Fit chi-squared.
     58    float chisqNorm;                    ///< re-normalized fit chi-squared.
     59    int nDOF;                           ///< number of degrees of freedom
     60    int nIter;                          ///< number of iterations to reach min
     61    pmModelStatus flags;                ///< model status flags
     62    float radiusFit;                    ///< fit radius actually used
     63    pmResiduals *residuals;             ///< normalized PSF residuals
    6464}
    6565pmModel;
     
    105105 */
    106106bool pmModelAdd(
    107     psImage *image,                     ///< The output image (float)
    108     psImage *mask,                      ///< The image pixel mask (valid == 0)
    109     pmModel *model,                     ///< The input pmModel
    110     pmModelOpMode mode               ///< mode to control how the model is added into the image
     107    psImage *image,                     ///< The output image (float)
     108    psImage *mask,                      ///< The image pixel mask (valid == 0)
     109    pmModel *model,                     ///< The input pmModel
     110    pmModelOpMode mode,                 ///< mode to control how the model is added into the image
     111    psMaskType maskVal                  ///< Value to mask
    111112);
    112113
     
    122123 */
    123124bool pmModelSub(
    124     psImage *image,                     ///< The output image (float)
    125     psImage *mask,                      ///< The image pixel mask (valid == 0)
    126     pmModel *model,                     ///< The input pmModel
    127     pmModelOpMode mode               ///< mode to control how the model is added into the image
     125    psImage *image,                     ///< The output image (float)
     126    psImage *mask,                      ///< The image pixel mask (valid == 0)
     127    pmModel *model,                     ///< The input pmModel
     128    pmModelOpMode mode,                 ///< mode to control how the model is added into the image
     129    psMaskType maskVal                  ///< Value to mask
    128130);
    129131
Note: See TracChangeset for help on using the changeset viewer.