Download Two-Dimensional Fourier Processing of
Transcript
Figure 4.9: Display Range Adjustment Using The Contrast Parameter as an Exponent
4.4.4
Zero Padding
In [16] it is recommended that the image be zero padded so that the dimensions are both
even numbers before performing the Fourier transform. This is to ensure that the same
fftshift function can be used for the forward and inverse processes, with odd dimensions
the forward and inverse processes are different. It is however more important for analysis
puposes that there is a DC component at the centre of the spectrum, which can only be
achieved with two odd dimensions. Therefore the raster images are padded with a single
row and/or column of zeros, as necessary to obtain an odd numbered size, before the 2D
FFT is performed in spec2D init. This requires use of Matlab’s padarray function, as
shown in listing 4.5.
h a n d l e s . data . s p e c 2 D s e t t i n g s . h e i g h t p a d ( frame ) = 1−mod( s i z e ( h a n d l e s . data .
image{ frame } , 1 ) , 2 ) ;
76