00001 /* $Id: irplib_fft.h,v 1.1 2008/06/03 15:56:32 lbilbao Exp $ 00002 * 00003 * This file is part of the irplib package 00004 * Copyright (C) 2002, 2003 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* 00022 * $Author: lbilbao $ 00023 * $Date: 2008/06/03 15:56:32 $ 00024 * $Revision: 1.1 $ 00025 * $Name: naco-4_1_2 $ 00026 */ 00027 00028 #ifndef HAVE_FFTW 00029 #define HAVE_FFTW 0 00030 #endif 00031 00032 #ifndef HAVE_SFFTW 00033 #define HAVE_SFFTW 0 00034 #endif 00035 00036 #ifndef HAVE_DFFTW 00037 #define HAVE_DFFTW 0 00038 #endif 00039 00040 #if HAVE_FFTW == 1 || HAVE_SFFTW == 1 || HAVE_DFFTW == 1 00041 00042 #ifndef IRPLIB_FFT_H 00043 #define IRPLIB_FFT_H 00044 00045 /*---------------------------------------------------------------------------- 00046 Includes 00047 ----------------------------------------------------------------------------*/ 00048 00049 #include <cpl.h> 00050 00051 /*---------------------------------------------------------------------------- 00052 Defines 00053 ----------------------------------------------------------------------------*/ 00054 00055 typedef unsigned long fft_mode; 00056 00057 #define IRPLIB_FFT_DEFAULT ((fft_mode) 1 << 1) 00058 #define IRPLIB_FFT_INVERSE ((fft_mode) 1 << 2) 00059 00060 /*---------------------------------------------------------------------------- 00061 Prototypes 00062 ----------------------------------------------------------------------------*/ 00063 00064 cpl_error_code irplib_imagelist_fft(cpl_imagelist * real_out, 00065 cpl_imagelist * imag_out, 00066 const cpl_imagelist * real_in, 00067 const cpl_imagelist * imag_in, 00068 unsigned mode); 00069 00070 cpl_error_code irplib_image_fft(cpl_image * real_out, 00071 cpl_image * imag_out, 00072 const cpl_image * real_in, 00073 const cpl_image * imag_in, 00074 unsigned mode); 00075 00076 #endif /* Corresponds to if IRPLIB_FFT_H */ 00077 00078 #endif /* Corresponds to first if HAVE_{FFTW, SFFTW, DFFTW} == 1 */
1.5.8