Beispiel #1
0
 /// <summary>
 /// Calculates the fast fourier transform of the image.
 /// </summary>
 /// <param name="image">The image to get calculate the FFT from.</param>
 /// <param name="shiftAxes">Whether to perform FFTShift on the Fourier image.</param>
 /// <param name="ignoreAlpha">Whether to ignore the alpha component of the image (if it is 32-bit).</param>
 /// <param name="disposeImage">Whether to dispose the image after use.</param>
 /// <param name="targetWidth">The height to resize the kernel to, or -1 to leave kernel same width. Can only be larger than the kernel width.</param>
 /// <param name="targetHeight">The height to resize the kernel to, or -1 to leave kernel same height. Can only be larger than the kernel height.</param>
 public FourierWorker(Bitmap image, bool shiftAxes = true, bool ignoreAlpha = false, bool disposeImage = false, int targetWidth = -1, int targetHeight = -1) : this(PixelWorker.FromImage(image, false, false, disposeImage ? ImageParameterAction.Dispose : ImageParameterAction.RemoveReference), shiftAxes, ignoreAlpha, true, targetWidth, targetHeight)
 {
 }