IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2009, 3:41:03 PM (17 years ago)
Author:
Paul Price
Message:

Fixing pmSubtractionKernelSolutions to work with current way of carrying solutions around.

File:
1 edited

Legend:

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

    r25120 r25279  
    957957    PS_ASSERT_FLOAT_WITHIN_RANGE(y, -1.0, 1.0, NULL);
    958958
    959     psArray *images = psArrayAlloc(solution->n - 1); // Images of each kernel to return
    960     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
    961961    psVectorInit(fakeSolution, 0.0);
    962962
    963     for (int i = 0; i < solution->n - 1; i++) {
    964         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];
    965965        images->data[i] = pmSubtractionKernelImage(kernels, x, y, wantDual);
    966966        fakeSolution->data.F64[i] = 0.0;
Note: See TracChangeset for help on using the changeset viewer.