IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2007, 11:45:26 AM (19 years ago)
Author:
Paul Price
Message:

Cleaning up, consolidating some duplicated code. Fixing photometric preservation for optimum kernels.

File:
1 edited

Legend:

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

    r14701 r14709  
    216216
    217217    // Subtract a reference kernel from all the others to maintain flux scaling
    218 //    if (spatialOrder > 0) {
     218    if (spatialOrder > 0) {
    219219        int subIndex = 0;                   // Index of kernel to subtract from others
    220220        psKernel *subtract = kernels->preCalc->data[subIndex]; // Kernel to subtract from others
     
    230230            }
    231231        }
    232 //    }
     232    }
    233233
    234234    if (psTraceGetLevel("psModules.imcombine.kernel") >= 10) {
     
    454454    // Subtract unity from the kernels to maintain photometric flux scaling
    455455    int numGaussians = fwhms->n;       // Number of Gaussians
    456 //    if (spatialOrder > 0) {
     456    if (spatialOrder > 0) {
    457457        for (int i = 0, index = 0; i < numGaussians; i++) {
    458458            for (int uOrder = 0; uOrder <= orders->data.S32[i]; uOrder++) {
     
    465465            }
    466466        }
    467 //    }
     467    }
    468468
    469469    int numISIS = kernels->num;         // Number of ISIS kernels
Note: See TracChangeset for help on using the changeset viewer.