IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25303


Ignore:
Timestamp:
Sep 9, 2009, 8:42:16 AM (17 years ago)
Author:
eugene
Message:

0.5 pix center corrections

Location:
branches/eam_branches/20090715/psModules/src/objects
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/objects/models/pmModel_GAUSS.c

    r20001 r25303  
    2929
    3030// the model is a function of the pixel coordinate (pixcoord[0,1] = x,y)
     31// 0.5 PIX: the parameters are defined in terms of pixel coords, so the incoming pixcoords
     32// values need to be pixel coords
    3133psF32 PM_MODEL_FUNC(psVector *deriv,
    3234                    const psVector *params,
  • branches/eam_branches/20090715/psModules/src/objects/pmGrowthCurveGenerate.c

    r23989 r25303  
    6565
    6666            // use the center of the center pixel of the image
     67            // 0.5 PIX: is this offset needed? probably -- the psf model uses 0.5,0.5 as the center, double check
    6768            float xc = (int)(ix*readout->image->numCols + 0.5*readout->image->numCols) + readout->image->col0 + 0.5;
    6869            float yc = (int)(iy*readout->image->numRows + 0.5*readout->image->numRows) + readout->image->row0 + 0.5;
  • branches/eam_branches/20090715/psModules/src/objects/pmPSFtry.c

    r24206 r25303  
    191191
    192192        // set object mask to define valid pixels
     193        // XXX 0.5 PIX: is the circle symmetric about the peak coordinate (given 0.5,0.5 center)?
    193194        psImageKeepCircle (source->maskObj, source->peak->x, source->peak->y, options->radius, "OR", markVal);
    194195
  • branches/eam_branches/20090715/psModules/src/objects/pmSourceFitModel.c

    r23989 r25303  
    9696
    9797            // Convert i/j to image space:
    98             coord->data.F32[0] = (psF32) (j + source->pixels->col0);
    99             coord->data.F32[1] = (psF32) (i + source->pixels->row0);
     98            // 0.5 PIX: the coordinate values must be in pixel coords, not index           
     99            coord->data.F32[0] = (psF32) (j + 0.5 + source->pixels->col0);
     100            coord->data.F32[1] = (psF32) (i + 0.5 + source->pixels->row0);
    100101            x->data[nPix] = (psPtr *) coord;
    101102            y->data.F32[nPix] = source->pixels->data.F32[i][j];
  • branches/eam_branches/20090715/psModules/src/objects/pmSourceFitSet.c

    r23487 r25303  
    483483
    484484            // Convert i/j to image space:
    485             coord->data.F32[0] = (psF32) (j + source->pixels->col0);
    486             coord->data.F32[1] = (psF32) (i + source->pixels->row0);
     485            // 0.5 PIX: the coordinate values must be in pixel coords, not index           
     486            coord->data.F32[0] = (psF32) (j + 0.5 + source->pixels->col0);
     487            coord->data.F32[1] = (psF32) (i + 0.5 + source->pixels->row0);
    487488            x->data[nPix] = (psPtr *) coord;
    488489            y->data.F32[nPix] = source->pixels->data.F32[i][j];
Note: See TracChangeset for help on using the changeset viewer.