18.15.2 Algorithms (2D FFT Filters)2DFFTFilterAlgorithm
2D FFT filters are used to process 2D signals, including matrix and image. A twodimensional fast Fourier transform (2D FFT) is performed first, and then a frequencydomain filter window is applied, and finally 2D IFFT is performed to convert the filtered result back to spatial domain.
Five types of filters and four types of windows are available in the 2D FFT Filters tool.
Filter Types
Filter types include: Low Pass, High Pass, Band Pass, Band Block, and Threshold.
Note that High Pass, Band Pass, and Band Block filters can all be created using Low Pass.
Filter types in 2D FFT Filters are listed in the following table. To understand 2D filter types of Low Pass, High Pass, Band Pass, Band Block more easily. Note the Ideal Window is used for each filter type in the table.
For a 2D filter H(u,v), u=0, 1,.., M1, v=0, 1,..., N1. Normalize the frequency coordinates: m=(uM/2)/M, n=(vN/2)/N, where 0.5<m<0.5 0.5<n<0.5 . r is defined as:
and is the cutoff frequency.
Low Pass

Block the frequency components above the cutoff frequency, and allow only the lower frequency components to pass.

High Pass

Block frequency components that are below the cutoff frequency.
Note that .

Band Pass

Allow frequencies within a specific range determined by the lower and upper cutoff frequencies to pass.
Note that .
where and are lowpass filters with the lower and upper cutoff frequency Fc1 and Fc2 respectively.

Band Block

Remove the frequencies within the chosen range.
Note that .

Threshold

Allow only frequency components whose amplitudes are between the lower threshold value and the upper threshold value to pass.
Where , and are lower and upper threshold values.
Note that window will not be used for Threshold filter type.

Window Types
Window types in 2D FFT Filters include Butterworth, Ideal, Gaussian, and Blackman.
High Pass, Band Pass, and Band Block filters can all be created from the Low Pass option for other window types in the same way as the Ideal window, which is listed in the table in Filter Types. Therefore only Low Pass filters for each window type are described below.
A common way to generate a 2D filter is to rotate the corresponding 1D filter window in the m  n normalized frequency domain, i.e., use to replace the variable in 1D Butterworth window function. We take the generation of 2D lowpass Butteworth filter as an example to describe the procedure.
Butterworth
1D Butterworth window function is expressed as:
Parameters are described as follows:
 m = (u  M/2) / M : the normalized frequency within range [0.5, 0.5], +/ 0.5 corresponds to the half Nyquist frequency. Note that other normalization methods can also be found. We choose this one because the filter's peak must be aligned with the DC component of the FFT result.
 Fc: the cutoff frequency, which is within the range (0, 0.5], is a key parameter for a filter. For Butterworth, the cutoff frequency is the frequency at which H(u) decreases to half its maximum value. Thus using a larger Fc results in smoother filtering. In general, a smoother filter is better to reduce the negative ringing effect caused by FFT filtering.
 p: the filter order, which is an integer number. The smaller p is, the smoother the filter is.
For a 2D FFT filter, let m = ( u  M/2 ) / M, n = (v  N/2 ) / N. Both m and n are within the range [0.5, 0.5]. Rotate the 1D Butterworth window in the m  n normalized frequency domain, and let , the 2D Butterworth low pass filter can be expressed as:
H(u,v) should only take values within a circular zone, the radius of which is determined by R = max(m[0], m[M1], n[0], n[N1]). And when r > R, the value of H(u,v) should be set to zero. And the cutoff frequency Fc is within range (0, R].
The cutoff frequency is normalized by 2R so that Fc's value range is always (0, 0.5].
The procedure to create a 2D FFT filter is as below.
A 2D Butterworth low pass filter for Fc=0.3, p=1 is shown as follows.
Ideal
Ideal Filter is introduced in the table in Filter Types.
Gaussian
2D Gaussian low pass filter can be expressed as:
For the 2D Gaussian filter, the cutoff value used is the point at which H(u,v) decreases to 0.607 times its maximum value. Larger values of Fc correspond to a smoother filter.
A 2D Gaussian low pass filter for Fc=0.2 is shown.
Blackman
2D Blackman low pass filter can be expressed as:
Note that this window function is slightly different from the standard form commonly seen, which is highpass. Here we want a lowpass filter, so we add 0.5 to r to turn the filter into lowpass.
2D FFT Filters in OriginPro provide a Truncate Window option to decide whether to cut off the Blackman window.
2D Blackman low pass filters without (first graph) and with (second graph) truncation are shown below.

Cutoff Value
2D FFT Filters in OriginPro supports four ways to specify the Cutoff Value. They are Fraction, Fourier Pixel, Wavelength, and Hertz. Relations for these four ways are listed as follows.
Fourier Pixel

Pixel in the matrix that stores the data. The value can be any positive number of type double.

Fraction

Fraction = Fourier Pixel / sqrt( (cols/2)^2+(rows/2)^2 ), where cols and rows are numbers of columns and rows of the filter, respectively.

Wavelength

Wavelength = (cols1) / Fourier Pixel

Hertz

Hertz = Fourier Pixel / cols

