IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 28, 2009, 12:05:39 PM (17 years ago)
Author:
Paul Price
Message:

Copy covariance matrix when copying readout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r21337 r24272  
    122122
    123123    return kernel;
     124}
     125
     126psKernel *psKernelCopy(const psKernel *in)
     127{
     128    PS_ASSERT_KERNEL_NON_NULL(in, NULL);
     129
     130    psKernel *out = psAlloc(sizeof(psKernel)); // The copied kernel, to be returned
     131    psMemSetDeallocator(out,(psFreeFunc)kernelFree);
     132
     133    out->image = psImageCopy(NULL, in->image, PS_TYPE_KERNEL);
     134    out->xMin = in->xMin;
     135    out->xMax = in->xMax;
     136    out->yMin = in->yMin;
     137    out->yMax = in->yMax;
     138
     139    kernelRedirects(out, out->image->numRows);
     140
     141    return out;
    124142}
    125143
Note: See TracChangeset for help on using the changeset viewer.