As we have stated several times so far, the input image is a digitized, pixelated or discrete array of values (fs(l), see Sampling theorem). The input is not a continuous function. Also, all our numerical calculations can only be done on a sampled, or discrete Fourier transform. Note that Fs(ω) is not discrete, it is continuous. One way would be to find the analytic Fs(ω), then sample it at any desired “freq-pixel”176 spacing. However, this process would involve two steps of operations and computers in particular are not too good at analytic operations for the first step. So here, we will derive a method to directly find the ‘freq-pixel’ated Fs(ω) from the pixelated fs(l). Let’s start with the definition of the Fourier transform (see Fourier transform):
Fs(ω)=∫∞−∞fs(l)e−iωldl
From the definition of fs(ω) (using x instead of n) we get:
Fs(ω)=∞∑x=−∞∫∞−∞f(l)δ(l−xP)e−iωldl=∞∑x=−∞fxe−iωxP
Where fx is the value of f(l) on the point x or the value of the xth pixel. As shown in Sampling theorem this function is infinitely periodic with a period of 2π/P. So all we need is the values within one period: 0<ω<2π/P, see Figure 6.3. We want X samples within this interval, so the frequency difference between each frequency sample or freq-pixel is 1/XP. Hence we will evaluate the equation above on the points at:
ω=uXPu=0,1,2,...,X−1
Therefore the value of the freq-pixel u in the frequency domain is:
Fu=X−1∑x=0fxe−iuxX
Therefore, we see that for each freq-pixel in the frequency domain, we are going to need all the pixels in the spatial domain177. If the input (spatial) pixel row is also X pixels wide, then we can exactly recover the xth pixel with the following summation:
fx=1XX−1∑u=0FueiuxX
When the input pixel row (we are still only working on 1D data) has X pixels, then it is L=XP spatial units wide. L, or the length of the input data was defined in Fourier series and P or the space between the pixels in the input was defined in Dirac delta and comb. As we saw in Sampling theorem, the input (spatial) pixel spacing (P) specifies the range of frequencies that can be studied and in Fourier series we saw that the length of the (spatial) input, (L) determines the resolution (or size of the freq-pixels) in our discrete Fourier transformed image. Both result from the fact that the frequency domain is the inverse of the spatial domain.
We are using the made-up word “freq-pixel” so they are not confused with spatial domain “pixels”.
So even if one pixel is a blank pixel (see Blank pixels), all the pixels in the frequency domain will also be blank.
JavaScript license information
GNU Astronomy Utilities 0.23 manual, July 2024.