IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2007, 10:10:05 AM (19 years ago)
Author:
Paul Price
Message:

Preparing to take a (long) list of sources as candidate stamps. Changed the list of stamps from a simple array to a more complicated structure so that I can carry around a list of candidate stamps for each region of interest; when one is rejected, it is replaced by the next brightest within the same region. Optionally apply an exclusion zone around stamps, which is important when we're convolving to a specified PSF (as opposed to convolving to match an image).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r14766 r14801  
    4646
    4747
    48 static bool getStamps(psArray **stamps, // Stamps to read
     48static bool getStamps(pmSubtractionStampList **stamps, // Stamps to read
    4949                      const psArray *stampsData, // Stamp data from a file
    5050                      const pmReadout *reference, // Reference readout
     
    8484
    8585        psFree(*stamps);
    86         *stamps = pmSubtractionSetStamps(xStamp, yStamp, fluxStamp, subMask, region);
    87     } else {
    88         psTrace("psModules.imcombine", 3, "Finding stamps...\n");
    89         *stamps = pmSubtractionFindStamps(*stamps, reference->image, subMask, region,
    90                                           threshold, stampSpacing);
    91     }
    92     if (!stamps) {
     86        // Apply exclusion zone if we're matching to a nominated PSF; otherwise don't care
     87        *stamps = pmSubtractionSetStamps(xStamp, yStamp, fluxStamp, reference->image, subMask,
     88                                         region, stampSpacing, input ? 0 : footprint);
     89    }
     90    psTrace("psModules.imcombine", 3, "Finding stamps...\n");
     91    *stamps = pmSubtractionFindStamps(*stamps, reference->image, subMask, region,
     92                                      threshold, stampSpacing);
     93    if (!*stamps) {
    9394        psError(PS_ERR_UNKNOWN, false, "Unable to find stamps.");
    9495        return false;
     
    220221    psRegion *region = NULL;            // Iso-kernel region
    221222    psString regionString = NULL;       // String for region
    222     psArray *stamps = NULL;            // Stamps for matching PSF
     223    pmSubtractionStampList *stamps = NULL; // Stamps for matching PSF
    223224    psVector *solution = NULL;          // Solution to match PSF
    224225    pmSubtractionKernels *kernels = NULL; // Kernel basis functions
Note: See TracChangeset for help on using the changeset viewer.