IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12372


Ignore:
Timestamp:
Mar 8, 2007, 9:26:50 PM (19 years ago)
Author:
eugene
Message:

peaks are in parent, not subimage coords - fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFindPeaks.c

    r11263 r12372  
    9797    // get the peak flux from the unsmoothed image
    9898    // the peak pixel coords are guaranteed to be on the image
     99    int row0 = readout->image->row0;
     100    int col0 = readout->image->col0;
    99101    for (int i = 0; i < peaks->n; i++) {
    100102        pmPeak *peak = peaks->data[i];
    101103        peak->SN = sqrt(peak->value*effArea);
    102         peak->flux = readout->image->data.F32[peak->y][peak->x];
     104        peak->flux = readout->image->data.F32[peak->y-row0][peak->x-col0];
    103105    }
    104106
Note: See TracChangeset for help on using the changeset viewer.