IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 4:03:13 PM (17 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/imcombine/pmSubtraction.c

    r24298 r25407  
    733733
    734734int pmSubtractionRejectStamps(pmSubtractionKernels *kernels, pmSubtractionStampList *stamps,
    735                               const psVector *deviations, psImage *subMask, float sigmaRej, int footprint)
     735                              const psVector *deviations, psImage *subMask, float sigmaRej)
    736736{
    737737    PM_ASSERT_SUBTRACTION_KERNELS_NON_NULL(kernels, false);
     
    821821    ds9num++;
    822822
     823    int footprint = stamps->footprint;  // Half-size of stamp region of interest
    823824    int numRejected = 0;                // Number of stamps rejected
    824825    int numGood = 0;                    // Number of good stamps
     
    956957    PS_ASSERT_FLOAT_WITHIN_RANGE(y, -1.0, 1.0, NULL);
    957958
    958     psArray *images = psArrayAlloc(solution->n - 1); // Images of each kernel to return
    959     psVector *fakeSolution = psVectorAlloc(solution->n, PS_TYPE_F64); // Fake solution vector
     959    psArray *images = psArrayAlloc(kernels->solution1->n - 1); // Images of each kernel to return
     960    psVector *fakeSolution = psVectorAlloc(kernels->solution1->n, PS_TYPE_F64); // Fake solution vector
    960961    psVectorInit(fakeSolution, 0.0);
    961962
    962     for (int i = 0; i < solution->n - 1; i++) {
    963         fakeSolution->data.F64[i] = solution->data.F64[i];
     963    for (int i = 0; i < kernels->solution1->n - 1; i++) {
     964        fakeSolution->data.F64[i] = kernels->solution1->data.F64[i];
    964965        images->data[i] = pmSubtractionKernelImage(kernels, x, y, wantDual);
    965966        fakeSolution->data.F64[i] = 0.0;
Note: See TracChangeset for help on using the changeset viewer.