IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2008, 2:28:18 PM (18 years ago)
Author:
eugene
Message:

move residuals correctly with the PSF when using the offsets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmModel.c

    r20448 r20592  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2008-10-29 00:01:22 $
     8 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2008-11-09 00:28:18 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    211211
    212212    // 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;
    215215
    216216    // use these values for this realization
     
    232232
    233233    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;
    236236        Ro = (model->residuals->Ro)   ? model->residuals->Ro->data.F32 : NULL;
    237237        Rx = (model->residuals->Rx)   ? model->residuals->Rx->data.F32 : NULL;
     
    254254            // XXX should we use using 0.5 pixel offset?
    255255            // 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;
    258258
    259259            x->data.F32[0] = (float) imageCol;
Note: See TracChangeset for help on using the changeset viewer.