Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
FHT Class Reference
Inheritance diagram for FHT:
FloatProcessor ImageProcessor

Public Member Functions

 FHT (ImageProcessor ip)
 
boolean powerOf2Size ()
 
void transform ()
 
void inverseTransform ()
 
ImageProcessor getPowerSpectrum ()
 
void swapQuadrants (ImageProcessor ip)
 
void swapQuadrants ()
 
FHT multiply (FHT fht)
 
FHT conjugateMultiply (FHT fht)
 
FHT divide (FHT fht)
 
void setShowProgress (boolean showProgress)
 
FHT getCopy ()
 
String toString ()
 
- Public Member Functions inherited from FloatProcessor
 FloatProcessor (int width, int height, float[] pixels, ColorModel cm)
 
 FloatProcessor (int width, int height)
 
 FloatProcessor (int width, int height, int[] pixels)
 
 FloatProcessor (int width, int height, double[] pixels)
 
void findMinAndMax ()
 
void setMinAndMax (double min, double max)
 
void resetMinAndMax ()
 
double getMin ()
 
double getMax ()
 
Image createImage ()
 
ImageProcessor createProcessor (int width, int height)
 
void snapshot ()
 
void reset ()
 
void reset (ImageProcessor mask)
 
int getPixel (int x, int y)
 
int[] getPixel (int x, int y, int[] iArray)
 
void putPixel (int x, int y, int[] iArray)
 
double getInterpolatedPixel (double x, double y)
 
void putPixel (int x, int y, int value)
 
void putPixelValue (int x, int y, double value)
 
float getPixelValue (int x, int y)
 
void drawPixel (int x, int y)
 
Object getPixels ()
 
Object getPixelsCopy ()
 
void setPixels (Object pixels)
 
void copyBits (ImageProcessor ip, int xloc, int yloc, int mode)
 
void applyTable (int[] lut)
 
void invert ()
 
void add (int value)
 
void add (double value)
 
void multiply (double value)
 
void and (int value)
 
void or (int value)
 
void xor (int value)
 
void gamma (double value)
 
void log ()
 
void sqr ()
 
void sqrt ()
 
void min (double value)
 
void max (double value)
 
void fill ()
 
void fill (ImageProcessor mask)
 
void convolve3x3 (int[] kernel)
 
void filter (int type)
 
void rotate (double angle)
 
void flipVertical ()
 
void noise (double range)
 
ImageProcessor crop ()
 
void scale (double xScale, double yScale)
 
ImageProcessor resize (int dstWidth, int dstHeight)
 
void setColor (Color color)
 
void setValue (double value)
 
void setThreshold (double minThreshold, double maxThreshold, int lutUpdate)
 
void convolve (float[] kernel, int kernelWidth, int kernelHeight)
 
void threshold (int level)
 
void autoThreshold ()
 
void medianFilter ()
 
int[] getHistogram ()
 
void erode ()
 
void dilate ()
 
- Public Member Functions inherited from ImageProcessor
int getWidth ()
 
int getHeight ()
 
ColorModel getColorModel ()
 
void setColorModel (ColorModel cm)
 
void invertLut ()
 
int getBestIndex (Color c)
 
boolean isInvertedLut ()
 
boolean isColorLut ()
 
boolean isPseudoColorLut ()
 
void setColor (int value)
 
void resetMinAndMax ()
 
void setThreshold (double minThreshold, double maxThreshold, int lutUpdate)
 
void resetThreshold ()
 
double getMinThreshold ()
 
double getMaxThreshold ()
 
void setRoi (Rectangle roi)
 
void setRoi (int x, int y, int rwidth, int rheight)
 
void setRoi (ij.gui.Roi roi)
 
void setRoi (Polygon roi)
 
void resetRoi ()
 
Rectangle getRoi ()
 
void setMask (ImageProcessor mask)
 
ImageProcessor getMask ()
 
byte[] getMaskArray ()
 
void setProgressBar (ProgressBar pb)
 
void setInterpolate (boolean interpolate)
 
boolean getInterpolate ()
 
boolean isKillable ()
 
double[] getLine (double x1, double y1, double x2, double y2)
 
void getRow (int x, int y, int[] data, int length)
 
void getColumn (int x, int y, int[] data, int length)
 
void putRow (int x, int y, int[] data, int length)
 
void putColumn (int x, int y, int[] data, int length)
 
void moveTo (int x, int y)
 
void setLineWidth (int width)
 
void lineTo (int x2, int y2)
 
void drawLine (int x1, int y1, int x2, int y2)
 
void drawRect (int x, int y, int width, int height)
 
void drawPolygon (Polygon p)
 
void fillPolygon (Polygon p)
 
void drawDot2 (int x, int y)
 
void drawDot (int xcenter, int ycenter)
 
void drawString (String s)
 
void drawString (String s, int x, int y)
 
void setJustification (int justification)
 
void setFont (Font font)
 
void setAntialiasedText (boolean antialiasedText)
 
int getStringWidth (String s)
 
FontMetrics getFontMetrics ()
 
void smooth ()
 
void sharpen ()
 
void findEdges ()
 
void flipHorizontal ()
 
ImageProcessor rotateRight ()
 
ImageProcessor rotateLeft ()
 
void insert (ImageProcessor ip, int xloc, int yloc)
 
String toString ()
 
void fill ()
 
void setCalibrationTable (float[] cTable)
 
void setHistogramSize (int size)
 
int getHistogramSize ()
 
void setHistogramRange (double histMin, double histMax)
 
double getHistogramMin ()
 
double getHistogramMax ()
 
int[] getPixel (int x, int y, int[] iArray)
 
void putPixel (int x, int y, int[] iArray)
 
double getInterpolatedValue (double x, double y)
 
void invert ()
 
void add (int value)
 
void add (double value)
 
void multiply (double value)
 
void and (int value)
 
void or (int value)
 
void xor (int value)
 
void gamma (double value)
 
void log ()
 
void sqr ()
 
void sqrt ()
 
void min (double value)
 
void max (double value)
 
ImageProcessor duplicate ()
 
void setLutAnimation (boolean lutAnimation)
 
ImageProcessor convertToByte (boolean doScaling)
 
ImageProcessor convertToShort (boolean doScaling)
 
ImageProcessor convertToFloat ()
 
ImageProcessor convertToRGB ()
 
void autoThreshold ()
 
int getAutoThreshold ()
 
int getAutoThreshold (int[] histogram)
 
void setClipRect (Rectangle clipRect)
 

Data Fields

boolean quadrantSwapNeeded
 
ColorProcessor rgb
 
int originalWidth
 
int originalHeight
 
int originalBitDepth
 
ColorModel originalColorModel
 

Additional Inherited Members

- Static Public Attributes inherited from ImageProcessor
static final int BLACK = 0xFF000000
 
static final double NO_THRESHOLD = -808080.0
 
static final int LEFT_JUSTIFY = 0
 
static final int CENTER_JUSTIFY = 1
 
static final int RIGHT_JUSTIFY = 2
 
static final int RED_LUT =0
 
- Protected Member Functions inherited from ImageProcessor
void showProgress (double percentDone)
 
void hideProgress ()
 
void makeDefaultColorModel ()
 
String maskSizeError (ImageProcessor mask)
 
- Protected Attributes inherited from ImageProcessor
int lineWidth = 1
 
int cx
 
Font font
 
FontMetrics fontMetrics
 
boolean antialiasedText
 
boolean boldFont
 
int width
 
int height
 
int roiX
 
int xMin
 
ColorModel baseCM
 
ColorModel cm
 
byte[] rLUT1
 
byte[] rLUT2
 
boolean interpolate
 
double minThreshold =NO_THRESHOLD
 
int histogramSize = 256
 
double histogramMin
 
float[] cTable
 
boolean lutAnimation
 
MemoryImageSource source
 
Image img
 
boolean newPixels
 
Color drawingColor = Color.black
 
int clipXMin
 
int justification = LEFT_JUSTIFY
 
boolean inversionTested = false
 
boolean invertedLut
 

Detailed Description

This class contains a Java implementation of the Fast Hartley Transform. It is based on Pascal code in NIH Image contributed by Arlo Reeves (http://rsb.info.nih.gov/ij/docs/ImageFFT/). The Fast Hartley Transform was restricted by U.S. Patent No. 4,646,256, but was placed in the public domain by Stanford University in 1995 and is now freely available.

Definition at line 14 of file FHT.java.

Constructor & Destructor Documentation

FHT ( ImageProcessor  ip)
inline

Constructs a FHT object from an ImageProcessor. Byte, short and RGB images are converted to float. Float images are duplicated.

Definition at line 38 of file FHT.java.

Member Function Documentation

FHT conjugateMultiply ( FHT  fht)
inline

Returns the image resulting from the point by point Hartley conjugate multiplication of this image and the specified image. Both images are assumed to be in the frequency domain. Conjugate multiplication in the frequency domain is equivalent to correlation in the space domain.

Definition at line 408 of file FHT.java.

FHT divide ( FHT  fht)
inline

Returns the image resulting from the point by point Hartley division of this image by the specified image. Both images are assumed to be in the frequency domain. Division in the frequency domain is equivalent to deconvolution in the space domain.

Definition at line 437 of file FHT.java.

FHT getCopy ( )
inline

Returns a clone of this FHT.

Definition at line 465 of file FHT.java.

ImageProcessor getPowerSpectrum ( )
inline

Returns an 8-bit power spectrum, log-scaled to 1-254. The image in this FHT is assumed to be in the frequency domain.

Definition at line 275 of file FHT.java.

void inverseTransform ( )
inline

Performs an inverse transform, converting this image into the space domain. The image contained in this FHT must be square and its width must be a power of 2.

Definition at line 60 of file FHT.java.

FHT multiply ( FHT  fht)
inline

Returns the image resulting from the point by point Hartley multiplication of this image and the specified image. Both images are assumed to be in the frequency domain. Multiplication in the frequency domain is equivalent to convolution in the space domain.

Definition at line 400 of file FHT.java.

boolean powerOf2Size ( )
inline

Returns true of this FHT contains a square image with a width that is a power of two.

Definition at line 46 of file FHT.java.

void setShowProgress ( boolean  showProgress)
inline

Enables/disables display of the progress bar during transforms.

Definition at line 460 of file FHT.java.

void swapQuadrants ( ImageProcessor  ip)
inline

Swap quadrants 1 and 3 and 2 and 4 of the specified ImageProcessor so the power spectrum origin is at the center of the image.

    2 1
    3 4

Definition at line 360 of file FHT.java.

void swapQuadrants ( )
inline

Swap quadrants 1 and 3 and 2 and 4 of the image contained in this FHT.

Definition at line 381 of file FHT.java.

String toString ( )
inline

Returns a string containing information about this FHT.

Definition at line 479 of file FHT.java.

void transform ( )
inline

Performs a foreward transform, converting this image into the frequency domain. The image contained in this FHT must be square and its width must be a power of 2.

Definition at line 54 of file FHT.java.

Field Documentation

int originalBitDepth

Used by the FFT class.

Definition at line 32 of file FHT.java.

ColorModel originalColorModel

Used by the FFT class.

Definition at line 34 of file FHT.java.

int originalHeight

Used by the FFT class.

Definition at line 30 of file FHT.java.

int originalWidth

Used by the FFT class.

Definition at line 28 of file FHT.java.

boolean quadrantSwapNeeded

Used by the FFT class.

Definition at line 24 of file FHT.java.

Used by the FFT class.

Definition at line 26 of file FHT.java.


The documentation for this class was generated from the following file: