IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30984


Ignore:
Timestamp:
Mar 18, 2011, 6:46:08 PM (15 years ago)
Author:
eugene
Message:

fix an error in my logic: a valid peak can fail to have a footprint at the threshold because of the min pixel requirement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmFootprintCullPeaks.c

    r30973 r30984  
    226226                int y = peak->y - subImg->row0;
    227227                int myID = idImg->data.S32[y][x];
    228 
    229                 // a peak in this threshold bin must be in a valid footprint, right?
    230                 psAssert(myID > 0, "impossible");
    231228                psAssert(myID < found->n, "impossible");
     229
     230                // a peak in this threshold bin without a valid footprint comes from a region
     231                // with only a handful of pixels (1 or more from the peak itself).  It probably
     232                // cannot be joined to a neighbor
     233                if (myID == 0) {
     234                    psArrayAdd (brightPeaks, 128, peak);
     235                    continue;
     236                }
    232237
    233238                // keep this peak if found->data.U8[myID] == false (no brighter peak in the footprint)
Note: See TracChangeset for help on using the changeset viewer.