IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2007, 5:26:23 PM (19 years ago)
Author:
magnier
Message:

changed PM_MODEL_ADD_.. to PM_MODEL_OP_..; added pmSourceAdd/Sub; adding modelFlux and maskView/maskObj to pmSource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_02_branch/psModules/src/objects/pmModel.c

    r12951 r12956  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.9.6.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-04-21 21:30:21 $
     8 *  @version $Revision: 1.9.6.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-04-23 03:26:23 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    160160    float skySave = params->data.F32[PM_PAR_SKY];
    161161
    162     if (mode & PM_MODEL_ADD_NORM) {
     162    if (mode & PM_MODEL_OP_NORM) {
    163163        params->data.F32[PM_PAR_I0] = 1.0;
    164164    }
    165     if (!(mode & PM_MODEL_ADD_SKY)) {
     165    if (!(mode & PM_MODEL_OP_SKY)) {
    166166        params->data.F32[PM_PAR_SKY] = 0.0;
    167167    }
    168     if (mode & PM_MODEL_ADD_CENTER) {
     168    if (mode & PM_MODEL_OP_CENTER) {
    169169        params->data.F32[PM_PAR_XPOS] = image->col0 + 0.5*image->numCols;
    170170        params->data.F32[PM_PAR_YPOS] = image->row0 + 0.5*image->numRows;
     
    184184    psImageInterpolateOptions *Rx = NULL;
    185185    psImageInterpolateOptions *Ry = NULL;
    186     if (model->residuals && (mode & (PM_MODEL_ADD_RES0 | PM_MODEL_ADD_RES1))) {
     186    if (model->residuals && (mode & (PM_MODEL_OP_RES0 | PM_MODEL_OP_RES1))) {
    187187        Ro = psImageInterpolateOptionsAlloc(
    188188            PS_INTERPOLATE_BILINEAR,
     
    217217
    218218            // add in the desired components for this coordinate
    219             if (mode & PM_MODEL_ADD_FUNC) {
     219            if (mode & PM_MODEL_OP_FUNC) {
    220220                pixelValue += modelFunc (NULL, params, x);
    221221            }
     
    227227                float oy = yBin*(imageRow + 0.5 - yCenter) + yResidCenter;
    228228
    229                 if (mode & PM_MODEL_ADD_RES0) {
     229                if (mode & PM_MODEL_OP_RES0) {
    230230                    psU8 mflux = 0;
    231231                    double Fo = 0.0;
     
    235235                    }
    236236                }
    237                 if (mode & PM_MODEL_ADD_RES1) {
     237                if (mode & PM_MODEL_OP_RES1) {
    238238                    psU8 mflux = 0;
    239239                    double Fx = 0.0;
Note: See TracChangeset for help on using the changeset viewer.