Changeset 12956 for branches/eam_02_branch/psModules/src/objects/pmModel.c
- Timestamp:
- Apr 22, 2007, 5:26:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_02_branch/psModules/src/objects/pmModel.c
r12951 r12956 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.9.6. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-2 1 21:30:21$8 * @version $Revision: 1.9.6.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-23 03:26:23 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 160 160 float skySave = params->data.F32[PM_PAR_SKY]; 161 161 162 if (mode & PM_MODEL_ ADD_NORM) {162 if (mode & PM_MODEL_OP_NORM) { 163 163 params->data.F32[PM_PAR_I0] = 1.0; 164 164 } 165 if (!(mode & PM_MODEL_ ADD_SKY)) {165 if (!(mode & PM_MODEL_OP_SKY)) { 166 166 params->data.F32[PM_PAR_SKY] = 0.0; 167 167 } 168 if (mode & PM_MODEL_ ADD_CENTER) {168 if (mode & PM_MODEL_OP_CENTER) { 169 169 params->data.F32[PM_PAR_XPOS] = image->col0 + 0.5*image->numCols; 170 170 params->data.F32[PM_PAR_YPOS] = image->row0 + 0.5*image->numRows; … … 184 184 psImageInterpolateOptions *Rx = NULL; 185 185 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))) { 187 187 Ro = psImageInterpolateOptionsAlloc( 188 188 PS_INTERPOLATE_BILINEAR, … … 217 217 218 218 // add in the desired components for this coordinate 219 if (mode & PM_MODEL_ ADD_FUNC) {219 if (mode & PM_MODEL_OP_FUNC) { 220 220 pixelValue += modelFunc (NULL, params, x); 221 221 } … … 227 227 float oy = yBin*(imageRow + 0.5 - yCenter) + yResidCenter; 228 228 229 if (mode & PM_MODEL_ ADD_RES0) {229 if (mode & PM_MODEL_OP_RES0) { 230 230 psU8 mflux = 0; 231 231 double Fo = 0.0; … … 235 235 } 236 236 } 237 if (mode & PM_MODEL_ ADD_RES1) {237 if (mode & PM_MODEL_OP_RES1) { 238 238 psU8 mflux = 0; 239 239 double Fx = 0.0;
Note:
See TracChangeset
for help on using the changeset viewer.
