net.sarcommand.fft
Class FourierTransform

java.lang.Object
  extended by net.sarcommand.fft.FourierTransform
Direct Known Subclasses:
FourierTransform1D, FourierTransform2D

public abstract class FourierTransform
extends java.lang.Object

Author:
A. O. Ergueven, Torsten Heup
Abstract superclass for all fourier transformation imeplemtations in this package.

Constructor Summary
FourierTransform()
           
 
Method Summary
 float[] computeUnityRoot(int n)
          Returns the nth primitive root of unity.
static byte[] convertToBytes(ComplexSignal frequencyImage)
          Converts the given frequency image to a byte array by scaling the values to the range of 0 to 255.
abstract  void inverseTransform(ComplexSignal inputData, net.sarcommand.util.ProgressNotifier notifier)
          Apply the inverse fourier transform to the given input data.
abstract  void transform(ComplexSignal inputData, net.sarcommand.util.ProgressNotifier notifier)
          Apply the fourier transform to the given input data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FourierTransform

public FourierTransform()
Method Detail

computeUnityRoot

public float[] computeUnityRoot(int n)
Returns the nth primitive root of unity.


convertToBytes

public static byte[] convertToBytes(ComplexSignal frequencyImage)
Converts the given frequency image to a byte array by scaling the values to the range of 0 to 255. This method will use the natural logarithm to scale the values.

Parameters:
frequencyImage - FrequencyImage to convert.
Returns:
byte[] containing the scaled values.

transform

public abstract void transform(ComplexSignal inputData,
                               net.sarcommand.util.ProgressNotifier notifier)
Apply the fourier transform to the given input data.

Parameters:
inputData - float[] containing the input pixels.

inverseTransform

public abstract void inverseTransform(ComplexSignal inputData,
                                      net.sarcommand.util.ProgressNotifier notifier)
Apply the inverse fourier transform to the given input data.

Parameters:
inputData - float[] containing the input pixels.