math.fourierTransforms.r2
Class FFT1dComplexFloatImage

java.lang.Object
  extended by math.fourierTransforms.r2.ComplexFloatImagePlane
      extended by math.fourierTransforms.r2.FFT1dComplexFloatImage

public class FFT1dComplexFloatImage
extends ComplexFloatImagePlane


Field Summary
 boolean DisplayLogPSD
           
 
Fields inherited from class math.fourierTransforms.r2.ComplexFloatImagePlane
cB_i, cB_r, cG_i, cG_r, cR_i, cR_r
 
Constructor Summary
FFT1dComplexFloatImage()
           
 
Method Summary
 void complexMultMask(FFT1dComplexFloatImage fftRgb)
           
 void fft(float[] re, float[] im)
          FFT engine.
 int[] forward2dFFT(float[] imageData_R, float[] imageData_G, float[] imageData_B, int imageWidth, int imageHeight)
           
 int[] forward2dFFT(short[] imageData_R, short[] imageData_G, short[] imageData_B, int imageWidth, int imageHeight)
           
 void forwardFFT(float[] in_r, float[] in_i)
           
 float[][] getBlueImaginary()
           
 float[][] getBlueReal()
           
 float[][] getGreenImaginary()
           
 float[][] getGreenReal()
           
 int[] getPhaseImage()
           
 float[][] getRedImaginary()
           
 float[][] getRedReal()
           
 ShortImageBean getShortImageBean()
           
 float[] magnitudeSpectrum(float[] in_r, float[] in_i)
           
static void main(java.lang.String[] args)
           
 void maskImage(int maskSize)
           
 void maskMult(FFT1dComplexFloatImage fftRgb)
           
 int[] reverse2dFFT()
           
 void reverseFFT(float[] in_r, float[] in_i)
           
 void swap(int i)
          1D FFT utility functions.
static void swapInt(float[] i_data1, float[] r_data1, int i, int j)
           
static void testFFT()
           
 void TestFFT()
          A way to visually test the 1D FFT on a small amount of data.
 
Methods inherited from class math.fourierTransforms.r2.ComplexFloatImagePlane
getPsd, normalize, printStats
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DisplayLogPSD

public boolean DisplayLogPSD
Constructor Detail

FFT1dComplexFloatImage

public FFT1dComplexFloatImage()
Method Detail

getPhaseImage

public int[] getPhaseImage()

forward2dFFT

public int[] forward2dFFT(float[] imageData_R,
                          float[] imageData_G,
                          float[] imageData_B,
                          int imageWidth,
                          int imageHeight)

getShortImageBean

public ShortImageBean getShortImageBean()

maskImage

public void maskImage(int maskSize)

forward2dFFT

public int[] forward2dFFT(short[] imageData_R,
                          short[] imageData_G,
                          short[] imageData_B,
                          int imageWidth,
                          int imageHeight)

reverse2dFFT

public int[] reverse2dFFT()

TestFFT

public void TestFFT()
A way to visually test the 1D FFT on a small amount of data.


swap

public void swap(int i)
1D FFT utility functions.


swapInt

public static void swapInt(float[] i_data1,
                           float[] r_data1,
                           int i,
                           int j)

forwardFFT

public void forwardFFT(float[] in_r,
                       float[] in_i)

reverseFFT

public void reverseFFT(float[] in_r,
                       float[] in_i)

fft

public void fft(float[] re,
                float[] im)
FFT engine. 1D Complex fft with floats. It is Radix 2. Therefore, the size must be an integral power of 2, 2*4, 32,64, 128,256,512,1024


getRedReal

public float[][] getRedReal()

getRedImaginary

public float[][] getRedImaginary()

getGreenReal

public float[][] getGreenReal()

getGreenImaginary

public float[][] getGreenImaginary()

getBlueReal

public float[][] getBlueReal()

getBlueImaginary

public float[][] getBlueImaginary()

magnitudeSpectrum

public float[] magnitudeSpectrum(float[] in_r,
                                 float[] in_i)

complexMultMask

public void complexMultMask(FFT1dComplexFloatImage fftRgb)

maskMult

public void maskMult(FFT1dComplexFloatImage fftRgb)

testFFT

public static void testFFT()

main

public static void main(java.lang.String[] args)