math.fourierTransforms.r2
Class FFT2dComplex

java.lang.Object
  extended by math.fourierTransforms.r2.FFT2dComplex

public class FFT2dComplex
extends java.lang.Object


Constructor Summary
FFT2dComplex(java.awt.Image img)
           
 
Method Summary
 void center()
           
 void conjugate()
           
 void denormalize()
          Does the inverse of normalize
 void fft()
           
static java.awt.Image filter(java.awt.Image img1, java.awt.Image img2)
           
 void flip()
           
 java.awt.Image getImage()
          Get the real part of the complex plane in red, green and blue, combine into an image.
 float getPeakRealValue()
           
 java.awt.Image getPsdImage()
           
 java.awt.Image getScaledImage()
           
static java.awt.Image getScaledImage(FFT2dComplex f1)
           
 java.awt.Image getScaledImage(float sf)
           
 void ifft()
           
static void main(java.lang.String[] args)
           
 void makeUnitary()
          Compute the peak values for the 3 color planes.
 void mult(FFT2dComplex f2)
          Multiply r,g,b in the complex frequency domain
 void normalize()
           
 void removeDCBias()
           
 void removeMean()
           
 void scale(float s)
           
static void testAndDisplay(java.awt.Image image1, java.awt.Image image2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFT2dComplex

public FFT2dComplex(java.awt.Image img)
Method Detail

main

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

scale

public void scale(float s)

normalize

public void normalize()

center

public void center()

getImage

public java.awt.Image getImage()
Get the real part of the complex plane in red, green and blue, combine into an image. Scale pixels to the range from 0..255. If the pixels are not in that range, call makeUnitary

Returns:
java.awt.Image of real number plane

makeUnitary

public void makeUnitary()
Compute the peak values for the 3 color planes. Select the max peak value and scale the color planes by 1/max.


filter

public static java.awt.Image filter(java.awt.Image img1,
                                    java.awt.Image img2)

testAndDisplay

public static void testAndDisplay(java.awt.Image image1,
                                  java.awt.Image image2)

getPsdImage

public java.awt.Image getPsdImage()

mult

public void mult(FFT2dComplex f2)
Multiply r,g,b in the complex frequency domain

Parameters:
f2 -

ifft

public void ifft()

fft

public void fft()

getPeakRealValue

public float getPeakRealValue()

denormalize

public void denormalize()
Does the inverse of normalize


getScaledImage

public java.awt.Image getScaledImage()

getScaledImage

public java.awt.Image getScaledImage(float sf)

getScaledImage

public static java.awt.Image getScaledImage(FFT2dComplex f1)

conjugate

public void conjugate()

flip

public void flip()

removeMean

public void removeMean()

removeDCBias

public void removeDCBias()