IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15077


Ignore:
Timestamp:
Sep 28, 2007, 11:03:51 AM (19 years ago)
Author:
eugene
Message:

skip peaks on edge

File:
1 edited

Legend:

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

    r15040 r15077  
    2121        int xPeak = source->peak->xf - source->pixels->col0 + 0.5;
    2222        int yPeak = source->peak->yf - source->pixels->row0 + 0.5;
     23
     24        // skip sources which are too close to a boundary
     25        if (xPeak < 1) continue;
     26        if (xPeak > source->pixels->numCols - 2) continue;
     27        if (yPeak < 1) continue;
     28        if (yPeak > source->pixels->numRows - 2) continue;
    2329
    2430        // XXX for now, just skip any sources with masked pixels
Note: See TracChangeset for help on using the changeset viewer.