Core Optical, Inc.
IsotropicFrequencyFilter GetCoefficientCrossSection Method Industrial Strength, Scientific Grade
Loads the filter coefficients into an array for cross-sectional visualization.

Namespace: PrecisionImage.FrequencyDomainProcessing
Assembly: PrecisionImage (in PrecisionImage.dll) Version: (

public float[] GetCoefficientCrossSection(
	int dimension


Type: OnlineSystem Int32
A OnlineInt32 type indicating the size of the array to return. Value must be an integer power of 2.

Return Value

An OnlineArray of type OnlineSingle containing the filter coefficients.


Use this method to quickly load the filter coefficients (computed using the current filter's current properties) into an array of type OnlineSingle. The values can then be used in a plotting routine for easy visualziation of the frequency roll-off behavior. Since the isotropic frequency filters are used in the frequency domain, for consistency the supplied dimension value must be an integer power of 2 value. (128, 256, 512, etc). Due to symmetry only half of the coefficient cross-section is computed. The first value in the array corresponds to the DC term coefficient. Higher array indices correspond to higher frequency coefficients.

The following instantiates a band-stop filter to attenuate the central 1/3rd frequencies of the spectrum and acquires an array of coefficients for inspection in a plotting routine.
using PrecisionImage.FrequencyDomainProcessing;

// Instantiate a filter with a steep low-frequency edge and a more moderate upper-frequency edge: 
IsotropicBandStopFilter filter = new IsotropicBandStopFilter(0.33f, 0.66f, 5, 10);

// Acquire the filter coefficients for inspection: 
Single[] FilterCrossSection = filter.GetCoefficientCrossSection(512);

The above array, once plotted, generates a figure similar to the following:

See Also