IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2007, 7:42:38 AM (19 years ago)
Author:
rhl
Message:

Implement and use pmGrowFootprintArray

File:
1 edited

Legend:

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

    r13348 r13351  
    6565    if (useFootprints) {
    6666       psArray *footprints = psphotFindPeaks (readout, recipe, useFootprints, 1);
     67       int growRadius = psMetadataLookupS32(None, recipe, "FOOTPRINT_GROW_RADIUS");
     68       if (growRadius > 0) {
     69           psArray *tmp = pmGrowFootprintArray(footprints, growRadius);
     70           psFree(footprints);
     71           footprints = tmp;
     72       }
     73
    6774       peaks = pmFootprintArrayToPeaks(footprints);
    6875       psFree(footprints);
     
    170177       psArray *newFootprints = psphotFindPeaks (readout, recipe, useFootprints, 2);
    171178
     179       int growRadius = psMetadataLookupS32(None, recipe, "FOOTPRINT_GROW_RADIUS_2");
     180       if (growRadius > 0) {
     181           psArray *tmp = pmGrowFootprintArray(newFootprints, growRadius);
     182           psFree(newFootprints);
     183           newFootprints = tmp;
     184       }
     185
    172186       psphotCullPeaks(readout->image, readout->weight, recipe, newFootprints);
    173187
Note: See TracChangeset for help on using the changeset viewer.