IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14482


Ignore:
Timestamp:
Aug 13, 2007, 4:37:47 PM (19 years ago)
Author:
Paul Price
Message:

Adapting for API changes to pmSubtraction* --- stamps now include
'kernels' that are the postage stamps for calculating the
least-squares equation. This change is necessary in order to support
the ability for the image subtraction code to convolve to a target
PSF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadout.c

    r14457 r14482  
    123123    float xRegionSize = 0, yRegionSize = 0; // Size of iso-kernel regions
    124124    psRegion *region = NULL;            // Iso-kernel region
    125     if (isfinite(regionSize)) {
     125    if (isfinite(regionSize) || regionSize == 0.0) {
    126126        xRegions = numCols / regionSize + 1;
    127127        yRegions = numRows / regionSize + 1;
     
    158158                memCheck("  find stamps");
    159159
     160                psTrace("ppSub", 3, "Extracting stamps...\n");
     161                if (!pmSubtractionExtractStamps(stamps, refRO->image, inRO->image, inRO->weight,
     162                                                footprint, kernels)) {
     163                    psError(PS_ERR_UNKNOWN, false, "Unable to extract stamps.");
     164                    goto ERROR;
     165                }
     166
     167                memCheck("   extract stamps");
     168
    160169                psTrace("ppSub", 3, "Calculating equation...\n");
    161                 if (!pmSubtractionCalculateEquation(stamps, refRO->image, inRO->image, inRO->weight,
    162                                                     kernels, footprint)) {
     170                if (!pmSubtractionCalculateEquation(stamps, kernels, footprint)) {
    163171                    psError(PS_ERR_UNKNOWN, false, "Unable to calculate least-squares equation.");
    164172                    goto ERROR;
Note: See TracChangeset for help on using the changeset viewer.