Common Pipeline Library Reference Manual
5.3.1
|
Functions | |
cpl_error_code | cpl_fft_image (cpl_image *out, const cpl_image *in, unsigned mode) |
Perform a FFT operation on an image. | |
cpl_error_code | cpl_fft_imagelist (cpl_imagelist *out, const cpl_imagelist *in, unsigned mode) |
Perform a FFT operation on the images of an imagelist. |
This module provides FFTW wrappers
#include "cpl_fft.h"
cpl_error_code cpl_fft_image | ( | cpl_image * | out, |
const cpl_image * | in, | ||
unsigned | mode | ||
) |
Perform a FFT operation on an image.
out | Pre-allocated output image |
in | Input image |
mode | At present, either CPL_FFT_FORWARD or CPL_FFT_BACKWARD |
This function performs a FFT operation on an image, using the FFTW library. If the CPL has not been configured providing this library, this function will return CPL_ERROR_UNSUPPORTED_MODE.
When performing a forward FFT, the input image must be of a real type and the output image of a complex type, and viceversa when performing an inverse FFT.
Both image types must match in precision level. Integer images are not supported.
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_fft_imagelist | ( | cpl_imagelist * | out, |
const cpl_imagelist * | in, | ||
unsigned | mode | ||
) |
Perform a FFT operation on the images of an imagelist.
out | Pre-allocated output imagelist |
in | Input imagelist |
mode | At present, either CPL_FFT_FORWARD or CPL_FFT_BACKWARD |