Core Optical, Inc.
FourierSpectrum GetPowerSpectrumImage Method Industrial Strength, Scientific Grade
Returns an image (with the specified PixelFormat) of the magnitude of the spectral components on a logarithmic (base 10) scale.

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

public BitmapSource GetPowerSpectrumImage(
	GrayBitDepth outputBitDepth,
	float blackThreshold = 0.001f
)

Parameters

outputBitDepth
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

A OnlineBitmapSource object containing the Log-Magnitude image.
Exceptions

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

Use this method to retrieve a OnlineBitmapSource image of the logarithmically-scaled magnitude values of the spectrum. Output types can be OnlineGray8, OnlineGray16 or OnlineGray32Float. Use Gray8 for an 8-bit grayscale image of the log power spectrum linearly scaled for display. Use Gray16 for a 16-bit grayscale image of the log power spectrum linearly scaled for display. Use Gray32Float for a 32-bit floating point image (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