FFREQ

Frequency domain image filter


EnvironmentsPYTHON :: EASI :: MODELER
Batch ModeYes
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Related

Back to top

Description


Applies a user-designed filter (specified in graphics planes) and/or a built-in radial filter to channels of a frequency domain image.
Back to top

Parameters


Name Type Length Value range
Input: Input frequency domain channel(s) * Raster port 1 - 16  
Output: Output filtered frequency domain channel(s) * Raster port 1 - 16  
InputBitmap: Bitmaps of Graphical Filters Bitmap port 0 - 16  
Border Width Integer 0 - 1 0 - 100
Default: 0
Filter Type String 0 - 1 BH | BL | GH | GL
Default: BH
Cutoff Frequency Float 0 - 1 0.0 - 1.0
Default: 0.5
Transformation Type String 0 - 1 FIR | FMP | WAL | HAD | COS
Default: FIR
Report String 0 - 192 See parameter description

* Required parameter
Back to top

Parameter descriptions

Input: Input frequency domain channel(s)

Specifies the input channel(s) containing frequency data.

The channels must contain 32-bit floating point values, and can be either real or complex. The input channels must be of the same data type, either all real-valued, or all complex-valued.

Output: Output filtered frequency domain channel(s)

Specifies the output channel to receive the filtered image.

There must be as many output channels specified as there are input channels. All output channels must be of the same data type as input channels.

InputBitmap: Bitmaps of Graphical Filters

Specifies the bitmap segments containing user-defined graphical filters. If more than one bitmap plane is specified, they are assembled together to form the area affected by the filter. If this parameter is not specified, no graphical filter is applied.

Border Width

Specifies the border width, in pixels, of the graphical filter.

A gradually decreasing border is generated at the boundary of the filter regions so that the filter gain smoothly decreases from 1 to 0. The width is provided in pixels (wave numbers). Half of the border width is inside the region and the other half is outside the region.

Filter Type

Specifies the type of filter applied on top of the filter specified by the graphics planes.

Supported options are:

If this parameter is not specified, no filter is applied.

Cutoff Frequency

Specifies the cutoff frequency for the radial filter, in fraction of highest image frequency (0 < fc < 1).

For Butterworth filters, this parameter specifies the point at which the filter gain is 0.707. For Gaussian filters, it specifies the standard deviation.

Transformation Type

Specifies the type of transformation in the input frequency channels. All input channels are assumed to be created with the same transformation type, and it is preserved in the output channels.

Supported transformation are:

The type of transformation defines the position of the lowest frequency: at image center for the two Fourier transformations, and at image upper left corner for the COS, HAD and WAL transforms. It also controls the handling of mask values, as described in the Details section below.

Report

Specifies where to direct the generated report.

Available options are:

Back to top

Details

FFREQ applies a user-designed filter (specified in graphics planes) and/or a built-in radial filter to channels of a frequency domain image.

Once an image is transformed into a frequency domain using FTF, certain noisy patterns in the original image now appear as strong energy concentrations in the frequency image. Masking out these frequency components achieves the effect of filtering out the noisy patterns when the frequency image is transformed back to the spatial domain using FTI.

The filtering-out (attenuation or removal) of some frequencies reduces the overall energy in the transform, and lowers the mean value of the back-transformed image. For low-pass filters the effect is minor. However, if the zero frequency (DC component of the spectrum) is removed, the mean of the back-transformed image will drop to a value close or equal to zero. This is an expected effect of the high-pass filtering of the image.

FFREQ allows two types of filters to be applied to a frequency domain image. First, you may specify the frequency components to remove by masking the corresponding regions on a graphics plane. FFREQ turns this bitmap into a filter and zeroes-out the underlying pixels in the frequency image. To reduce artifacts in the filtered image caused by sharp cutoffs in the frequency image, FFREQ automatically generates a smooth border at the boundaries of the mask regions, so that the filter gain gradually decreases from 1 to 0 within the border. The width of the border can be specified using the Border Width (BDWD) parameter.

For a real-valued image (such as an image from an optical sensor, or a detected radar image), its Fourier transform exhibits a property of conjugate symmetry about the center of the image: at a pair of corresponding points, the real parts of the Fourier transformation are equal and the imaginary parts have the same magnitude but opposite signs. For complex-valued images (such as single-look complex radar images) there is no such symmetry. FFREQ assumes that transforms stored in real-valued channels (DBIC) are produced from real-valued images, while transforms stored in complex-valued channels are created from complex images.

To maintain a real image after applying the filter, FFREQ ensures that for the Fourier transforms stored in real-valued channels the graphical filter is symmetrical at the center of the image. Particularly, if any pixel is set by the user, both this point and its symmetrical point are considered to be set. Thus, you need only define the filter on any half of the image. For other transform types (COS, HAD, WAL, and Fourier transforms stored in complex channels), symmetry is not enforced and the entire bitmap is used as specified.

FFREQ can also apply pre-defined radial filters to an image. The supported filter types are Gaussian and Butterworth. The Gaussian filter is smooth while the Butterworth filter has a much sharper cutoff edge. The Butterworth filter is a good choice when signal and noise are clearly separable. Otherwise, the Gaussian filter is preferred, as it minimizes artifacts. The polynomial order of the Butterworth filter is fixed at 8, which is appropriate for most common uses.

The Transformation Type (TFORM) parameter indicates the location of the zero-frequency component of the frequency image. If this parameter is set to FIR or FMP, zero-frequency is assumed to be at the image center. For all other values (COS, WAL, HAD), zero-frequency is assumed to be at the top-left corner of image.

For Fourier-transformed images, if the images are stored as Real and Imaginary parts, both parts should be filtered at the same time. If the images are stored as Magnitude and Phase, only the Magnitude part should be filtered; the Phase part should not be passed in as an input channel. The unchanged phase image is necessary for restoring the filtered image to the spatial domain.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.