IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2011, 2:43:27 PM (15 years ago)
Author:
eugene
Message:

do not require a footprint when generating matched sources; copy the footprint for double objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110906/psphot/src/psphotSourceMatch.c

    r32348 r32619  
    234234           
    235235            // assign to a footprint on this readout->image
    236             peak->footprint = pmFootprintCopyData(footprint, readout->image);
    237 
    238             // the peak does not claim ownership of the footprint (it does not free it). save a copy of this
    239             // footprint on detections->footprints so we can free it later
    240             psArrayAdd(detections->footprints, 100, peak->footprint);
    241             psFree (peak->footprint);
     236            if (footprint) {
     237                peak->footprint = pmFootprintCopyData(footprint, readout->image);
     238
     239                // the peak does not claim ownership of the footprint (it does not free it). save a copy of this
     240                // footprint on detections->footprints so we can free it later
     241                psArrayAdd(detections->footprints, 100, peak->footprint);
     242                psFree (peak->footprint);
     243            }
    242244           
    243245            // create a new source
Note: See TracChangeset for help on using the changeset viewer.