diff options
Diffstat (limited to 'macros/IFFT.sci')
-rw-r--r-- | macros/IFFT.sci | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/macros/IFFT.sci b/macros/IFFT.sci new file mode 100644 index 0000000..7f10c42 --- /dev/null +++ b/macros/IFFT.sci @@ -0,0 +1,31 @@ +function [out]=IFFT(inputimage) +// Computes the inverse descrete fourier transform of image +// +// Calling Sequence +// output_image = IFFT(inputimage); +// +// Parameters +// +// inputimage : Grayscale image +// out_image : IFFT of input image +// +// Description +// This function computes the inverse descrete fourier transform of input image.The image should be grayscale. +// +// Examples +// a = imread('cameraman.tif'); +// b = IFFT(a); +// imshow(b) +// +// Authors: +// +//Diwakar Bhardwaj + + + inputimage1=mattolist(inputimage); + a=opencv_IFFT(inputimage1); + dimension=size(a) + for i = 1:dimension + out(:,:,i)=a(i); + end +endfunction; |