Changeset 25361
- Timestamp:
- Sep 13, 2009, 4:57:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotRadialProfileByAngle.c
r25178 r25361 4 4 // separations 5 5 6 float psphotMeanSectorValue (psImage *image, int x, int y, float dL, float dW, float theta);6 float psphotMeanSectorValue (psImage *image, float x, float y, float dL, float dW, float theta); 7 7 psVector *psphotBoxValues (psImage *image, float x0, float y0, float dL, float dW, float theta); 8 8 psVector *psphotLineValues (psImage *image, double x1, double y1, double x2, double y2, int dW); … … 38 38 for (float r = 0; r < Rmax; r += dR) { 39 39 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; 42 42 43 43 // Xo,Yo are referenced to pixels with bounds i+0.0, i+1.0 … … 54 54 if (dR < 2) { 55 55 // value is NAN if we run off the image 56 // 0.5 PIX: this function takes pixel coords; source peak is in pixel coords 56 57 value = psImageInterpolatePixelBilinear(x, y, source->pixels); 57 58 } else { 59 // 0.5 PIX: this function takes pixel coords; source peak is in pixel coords 58 60 value = psphotMeanSectorValue(source->pixels, x, y, dR, dR, theta); 59 61 } … … 119 121 } 120 122 121 float psphotMeanSectorValue (psImage *image, int x, int y, float dL, float dW, float theta) {123 float psphotMeanSectorValue (psImage *image, float x, float y, float dL, float dW, float theta) { 122 124 123 125 psVector *values = psphotBoxValues (image, x, y, dL, dW, theta);
Note:
See TracChangeset
for help on using the changeset viewer.
