IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2010, 11:47:48 AM (16 years ago)
Author:
eugene
Message:

added pre-ffted kernel convolutions, changed minimization to accept maxTol and minTol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fft/psImageFFT.h

    r21183 r28998  
    1515#include "psImage.h"
    1616#include "psImageConvolve.h"
     17
     18typedef struct {
     19    void *fft;
     20    int xMin;                          ///< Most negative x index
     21    int yMin;                          ///< Most negative y index
     22    int xMax;                          ///< Most positive x index
     23    int yMax;                          ///< Most positive y index
     24    int paddedCols;
     25    int paddedRows;
     26} psKernelFFT;
    1727
    1828/// @addtogroup MathOps Mathematical Operations
     
    7181    const psImage *mask,                ///< Corresponding mask
    7282    psImageMaskType maskVal,            ///< Value to mask
    73     const psKernel *kernel              ///< kernel to colvolve with
     83    const psKernel *kernel              ///< kernel to convolve with
     84    );
     85
     86/// Allocate an the psKernelFFT structure
     87psKernelFFT *psKernelFFTAlloc(
     88    const psKernel *input               ///< kernel to convolve with
    7489);
     90
     91/// Generate an FFT'ed kernel suitable for convolution with the given image
     92psKernelFFT *psImageConvolveKernelInit(
     93    const psImage *in,                  ///< representative image to convolve
     94    const psKernel *kernel              ///< kernel to convolve with
     95    );
     96
     97/// Convolve the given image with the pre-FFT'ed kernel
     98psImage *psImageConvolveKernel(
     99    psImage *out,                       ///< Output image, or NULL
     100    const psImage *in,                  ///< Image to convolve
     101    const psImage *mask,                ///< Corresponding mask
     102    psImageMaskType maskVal,            ///< Value to mask
     103    const psKernelFFT *kernel           ///< kernel to convolve with
     104    );
    75105
    76106/// @}
Note: See TracChangeset for help on using the changeset viewer.