|
Common Pipeline Library Reference Manual 6.0a1
|
Typedefs | |
| typedef enum _cpl_fft_mode_ | cpl_fft_mode |
| The CPL fft mode. | |
Enumerations | |
| enum | _cpl_fft_mode_ { CPL_FFT_FORWARD, CPL_FFT_BACKWARD } |
The supported values of the CPL fft mode. More... | |
Functions | |
| cpl_error_code | cpl_fft_image (cpl_image *out, const cpl_image *in, cpl_fft_mode mode) |
| Perform a FFT operation on an image. | |
| cpl_error_code | cpl_fft_imagelist (cpl_imagelist *out, const cpl_imagelist *in, cpl_fft_mode mode) |
| Perform a FFT operation on the images of an imagelist. | |
This module provides FFTW wrappers
#include "cpl_fft.h"
| typedef enum _cpl_fft_mode_ cpl_fft_mode |
The CPL fft mode.
| enum _cpl_fft_mode_ |
| cpl_error_code cpl_fft_image | ( | cpl_image * | out, |
| const cpl_image * | in, | ||
| cpl_fft_mode | 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 with 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.
Currently the images must be square.
Possible _cpl_error_code_ set in this function:
| cpl_error_code cpl_fft_imagelist | ( | cpl_imagelist * | out, |
| const cpl_imagelist * | in, | ||
| cpl_fft_mode | 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 |
1.7.3