The flutter shutter camera simulator
|
00001 /* fftw_routines.h */ 00002 /* 00003 * Copyright 2012 IPOL Image Processing On Line http://www.ipol.im/ 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 00020 void forward_fftw_simple(double* in,int width,int height, double* reOut, 00021 double* imOut); 00022 //Compute the DFT 00023 00024 00025 void backward_fftw_simple(double* reIn, 00026 double* imIn, 00027 double* out, 00028 unsigned int width, 00029 unsigned int height); 00030 //Compute the DFT inverse 00031 00032 00033 void fftw_multiplication(double* reTabImage, 00034 double* imTabImage, 00035 double* reTabFilter, 00036 double* imTabFilter, 00037 unsigned int width, 00038 unsigned int height); 00039 //Used for easy convolution 00040 00041 00042 00043 00044 00045 void fftw_division(double* reTabImage, 00046 double* imTabImage, 00047 double* reTabFilter, 00048 double* imTabFilter, 00049 unsigned int width, 00050 unsigned int height); 00051 00052 //Used for easy deconvolution 00053 00054