Changeset 20592
- Timestamp:
- Nov 8, 2008, 2:28:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmModel.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmModel.c
r20448 r20592 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2008-1 0-29 00:01:22$8 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2008-11-09 00:28:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 211 211 212 212 // apply optional relative offset 213 params->data.F32[PM_PAR_XPOS] += dx;214 params->data.F32[PM_PAR_YPOS] += dy;213 // params->data.F32[PM_PAR_XPOS] += dx; 214 // params->data.F32[PM_PAR_YPOS] += dy; 215 215 216 216 // use these values for this realization … … 232 232 233 233 if (model->residuals) { 234 DX = xBin*(image->col0 - xCenter ) + model->residuals->xCenter + 0.5;235 DY = yBin*(image->row0 - yCenter ) + model->residuals->yCenter + 0.5;234 DX = xBin*(image->col0 - xCenter - dx) + model->residuals->xCenter + 0.5; 235 DY = yBin*(image->row0 - yCenter - dy) + model->residuals->yCenter + 0.5; 236 236 Ro = (model->residuals->Ro) ? model->residuals->Ro->data.F32 : NULL; 237 237 Rx = (model->residuals->Rx) ? model->residuals->Rx->data.F32 : NULL; … … 254 254 // XXX should we use using 0.5 pixel offset? 255 255 // Convert to coordinate in parent image, with offset (dx,dy) 256 imageCol = ix + image->col0 ;257 imageRow = iy + image->row0 ;256 imageCol = ix + image->col0 - dx; 257 imageRow = iy + image->row0 - dy; 258 258 259 259 x->data.F32[0] = (float) imageCol;
Note:
See TracChangeset
for help on using the changeset viewer.
