IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 17, 2009, 6:55:35 PM (17 years ago)
Author:
Paul Price
Message:

Working on more robust way of determining the image to convolve. Intend to attempt to measure the convolution kernel each way, and take the one that does the best job. This code is currently #if-ed out.

File:
1 edited

Legend:

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

    r24296 r25101  
    765765    return PM_SUBTRACTION_KERNEL_NONE;
    766766}
     767
     768pmSubtractionKernels *pmSubtractionKernelsCopy(const pmSubtractionKernels *in)
     769{
     770    PM_ASSERT_SUBTRACTION_KERNELS_NON_NULL(in, NULL);
     771
     772    pmSubtractionKernels *out = psAlloc(sizeof(pmSubtractionKernels)); // Kernels, to return
     773    psMemSetDeallocator(out, (psFreeFunc)subtractionKernelsFree);
     774
     775    out->type = in->type;
     776    out->description = in->description;
     777    out->num = in->num;
     778    out->u = psMemIncrRefCounter(in->u);
     779    out->v = psMemIncrRefCounter(in->v);
     780    out->widths = psMemIncrRefCounter(in->widths);
     781    out->preCalc = psMemIncrRefCounter(in->preCalc);
     782    out->penalty = in->penalty;
     783    out->penalties = psMemIncrRefCounter(in->penalties);
     784    out->uStop = psMemIncrRefCounter(in->uStop);
     785    out->vStop = psMemIncrRefCounter(in->vStop);
     786    out->size = in->size;
     787    out->inner = in->inner;
     788    out->spatialOrder = in->spatialOrder;
     789    out->bgOrder = in->bgOrder;
     790    out->mode = in->mode;
     791    out->numCols = in->numCols;
     792    out->numRows = in->numRows;
     793    out->solution1 = in->solution1 ? psVectorCopy(NULL, in->solution1, PS_TYPE_F64) : NULL;
     794    out->solution2 = in->solution2 ? psVectorCopy(NULL, in->solution2, PS_TYPE_F64) : NULL;
     795
     796    return out;
     797}
Note: See TracChangeset for help on using the changeset viewer.