jjil.algorithm
Class FftGray8

java.lang.Object
  extended by jjil.core.PipelineStage
      extended by jjil.algorithm.FftGray8

public class FftGray8
extends PipelineStage

Takes the fast Fourier transform of the input Gray8Image. The output image is a Complex32Image. The image size must be a power of 2.

Author:
webb

Field Summary
static int SCALE
          Defines the scale factor applied to the image as a power of two, for accuracy.
 
Constructor Summary
FftGray8()
          Creates a new instance of FftGray8.
 
Method Summary
 void push(Image im)
          Performs the fast Fourier transform on an image.
 
Methods inherited from class jjil.core.PipelineStage
getFront, isEmpty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALE

public static int SCALE
Defines the scale factor applied to the image as a power of two, for accuracy.

Constructor Detail

FftGray8

public FftGray8()
Creates a new instance of FftGray8.

Method Detail

push

public void push(Image im)
          throws Error
Performs the fast Fourier transform on an image. The input image is a Gray8Image, and the output is a Complex32Image. The input is scaled by shifting left SCALE bits before the transformation, for accuracy.

Specified by:
push in class PipelineStage
Parameters:
im - Input image. Must be a Gray8Image.
Throws:
Error - if the input is not a Gray8Image or is not a power of two in width and height.