IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25361


Ignore:
Timestamp:
Sep 13, 2009, 4:57:28 PM (17 years ago)
Author:
eugene
Message:

adjust to use pixel coords not pixel index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotRadialProfileByAngle.c

    r25178 r25361  
    44// separations
    55
    6 float psphotMeanSectorValue (psImage *image, int x, int y, float dL, float dW, float theta);
     6float psphotMeanSectorValue (psImage *image, float x, float y, float dL, float dW, float theta);
    77psVector *psphotBoxValues (psImage *image, float x0, float y0, float dL, float dW, float theta);
    88psVector *psphotLineValues (psImage *image, double x1, double y1, double x2, double y2, int dW);
     
    3838        for (float r = 0; r < Rmax; r += dR) {
    3939
    40             float Xo = source->peak->xf + 0.5;
    41             float Yo = source->peak->yf + 0.5;
     40            float Xo = source->peak->xf;
     41            float Yo = source->peak->yf;
    4242
    4343            // Xo,Yo are referenced to pixels with bounds i+0.0, i+1.0
     
    5454            if (dR < 2) {
    5555                // value is NAN if we run off the image
     56                // 0.5 PIX: this function takes pixel coords; source peak is in pixel coords
    5657                value = psImageInterpolatePixelBilinear(x, y, source->pixels);
    5758            } else {
     59                // 0.5 PIX: this function takes pixel coords; source peak is in pixel coords
    5860                value = psphotMeanSectorValue(source->pixels, x, y, dR, dR, theta);
    5961            }
     
    119121}
    120122
    121 float psphotMeanSectorValue (psImage *image, int x, int y, float dL, float dW, float theta) {
     123float psphotMeanSectorValue (psImage *image, float x, float y, float dL, float dW, float theta) {
    122124
    123125    psVector *values = psphotBoxValues (image, x, y, dL, dW, theta);
Note: See TracChangeset for help on using the changeset viewer.