Core Optical, Inc.
FourierSpectrum GetPowerSpectrumImageArray Method Industrial Strength, Scientific Grade
Returns an Array of pixels representing the magnitude of the spectral components on a logarithmic (base 10) scale.

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

public Array GetPowerSpectrumImageArray(
	GrayBitDepth outputBitDepth,
	float blackThreshold = 0.001f


Type: PrecisionImage GrayBitDepth
A GrayBitDepth type indicating the desired output format.
blackThreshold (Optional)
Type: OnlineSystem Single
A OnlineSingle that indicates the minimum magnitude to scale for visualization. Component magnitudes that fall below this threshold appear as black in the output OnlineBitmapSource. This value must be greater than zero. Default is 0.001f.

Return Value

An OnlineArray object containing the Log-Magnitude image pixel array.

OnlineSystem ArgumentOutOfRangeException Thrown when the value of blackThreshold does not exceed zero.

Use this method to retrieve an OnlineArray of image pixels containing the logarithmically-scaled magnitude values of the spectrum. Output types can be OnlineGray8, OnlineGray16 or OnlineGray32Float. Use Gray8 for an 8-bit grayscale image array of the log power spectrum linearly scaled for display. Use Gray16 for a 16-bit grayscale image array of the log power spectrum linearly scaled for display. Use Gray32Float for a 32-bit floating point image array (note: although the data is linearly scaled, WPF will apply a gamma correction to any image of this input array type. As a result, the 32-bit floating point image of the power spectrum may exhibit altered contrast compared to the previous grayscale types).
See Also