IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2007, 12:35:59 PM (19 years ago)
Author:
Paul Price
Message:

Adding ability to get stamps from sources.

File:
1 edited

Legend:

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

    r14803 r14805  
    9393bool pmSubtractionMatch(pmReadout *convolved, const pmReadout *reference, const pmReadout *input,
    9494                        int footprint, float regionSize, float stampSpacing, float threshold,
    95                         const char *stampsName, float targetWidth, pmSubtractionKernelsType type,
    96                         int size, int spatialOrder, const psVector *isisWidths, const psVector *isisOrders,
    97                         int inner, int ringsOrder, int binning, bool optimum, psVector *optFWHMs,
     95                        const psArray *sources, const char *stampsName, float targetWidth,
     96                        pmSubtractionKernelsType type, int size, int spatialOrder,
     97                        const psVector *isisWidths, const psVector *isisOrders,
     98                        int inner, int ringsOrder, int binning, bool optimum, const psVector *optFWHMs,
    9899                        int optOrder, float optThreshold, int iter, float rej, psMaskType maskBad,
    99100                        psMaskType maskBlank)
     
    132133    PS_ASSERT_FLOAT_LARGER_THAN(stampSpacing, 0.0, false);
    133134    // Don't care what threshold is
     135    if (sources) {
     136        PS_ASSERT_ARRAY_NON_NULL(sources, false);
     137    }
    134138    // stampsName may be anything
    135139    // targetWidth can be just about anything (except maybe negative, but it can be NAN)
     
    231235            }
    232236
    233             // Read stamps from file
    234             if (stampsName && strlen(stampsName) > 0) {
     237            if (sources) {
     238                stamps = pmSubtractionStampsSetFromSources(sources, subMask, region, stampSpacing,
     239                                                           input ? 0 : 2 * footprint);
     240            } else if (stampsName && strlen(stampsName) > 0) {
     241                // Read stamps from file
    235242                psTrace("psModules.imcombine", 3, "Reading stamps from %s...\n", stampsName);
    236243                const char *stampFormat = input ? "%f %f" : "%f %f %f"; // Format for reading stamp file
Note: See TracChangeset for help on using the changeset viewer.