public FourierTransform(Complex[,] image) { Width = image.GetLength(0); Height = image.GetLength(1); GrayscaleImageComplex = image; GrayscaleImageInteger = ImageDataConverter.ToInteger(image); }
public void InverseFFT(Complex[,] fftImage) { if (FourierImageComplex == null) { FourierImageComplex = fftImage; Width = FourierImageComplex.GetLength(0); Height = FourierImageComplex.GetLength(1); } GrayscaleImageComplex = FourierFunction.FFT2D(FourierImageComplex, Width, Height, -1); GrayscaleImageInteger = ImageDataConverter.ToInteger(GrayscaleImageComplex); ImageBitmap = ImageDataConverter.ToBitmap(GrayscaleImageInteger); }
public static int[,] ToGrayscale2(Bitmap colorBitmap) { Bitmap bmp = Grayscale.ToGrayscale(colorBitmap); return(ImageDataConverter.ToInteger(bmp)); }
public static Bitmap ToBitmap(Complex[,] image) { return(ImageDataConverter.ToBitmap(ImageDataConverter.ToInteger(image))); }
public static Complex[,] ToComplex(Bitmap image) { return(ImageDataConverter.ToComplex(ImageDataConverter.ToInteger(image))); }