|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.process.ImageProcessor
ij.process.FloatProcessor
ij.process.FHT
public class FHT
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://imagej.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.
Field Summary | |
---|---|
int |
originalBitDepth
Used by the FFT class. |
java.awt.image.ColorModel |
originalColorModel
Used by the FFT class. |
int |
originalHeight
Used by the FFT class. |
int |
originalWidth
Used by the FFT class. |
boolean |
quadrantSwapNeeded
Used by the FFT class. |
ColorProcessor |
rgb
Used by the FFT class. |
Fields inherited from class ij.process.FloatProcessor |
---|
pixels8 |
Fields inherited from class ij.process.ImageProcessor |
---|
antialiasedText, baseCM, bLUT1, bLUT2, boldFont, clipXMax, clipXMin, clipYMax, clipYMin, cm, cm2, cTable, cx, cxD, cy, cyD, defaultColorModel, drawingColor, fmImage, font, fontMetrics, gLUT1, gLUT2, height, heightD, histogramMax, histogramMin, histogramSize, image, img, interpolate, interpolationMethod, inversionTested, invertedLut, justification, lineWidth, lutAnimation, lutUpdateMode, maxThreshold, minMaxSet, minThreshold, newPixels, raster, rLUT1, rLUT2, roiHeight, roiHeightD, roiWidth, roiWidthD, roiX, roiXD, roiY, roiYD, sampleModel, snapshotHeight, snapshotHeightD, snapshotWidth, snapshotWidthD, source, width, widthD, xMax, xMaxD, xMin, xMinD, yMax, yMaxD, yMin, yMinD |
Fields inherited from interface ij.process.ProcessorConstance |
---|
ABS, ADD, AND, BICUBIC, BILINEAR, BLACK, BLACK_AND_WHITE_LUT, BLUR_MORE, CENTER_JUSTIFY, CONVOLVE, EXP, FILL, FIND_EDGES, GAMMA, INVERT, ISODATA, ISODATA2, LEFT_JUSTIFY, LOG, MAX, MAXIMUM, MEDIAN_FILTER, MIN, MINIMUM, MULT, NEAREST_NEIGHBOR, NO_LUT_UPDATE, NO_THRESHOLD, NONE, OR, OVER_UNDER_LUT, RED_LUT, RIGHT_JUSTIFY, SQR, SQRT, WRONG_LENGTH, XOR |
Constructor Summary | |
---|---|
FHT()
|
|
FHT(ImageProcessor ip)
Constructs a FHT object from an ImageProcessor. |
Method Summary | |
---|---|
FHT |
conjugateMultiply(FHT fht)
Returns the image resulting from the point by point Hartley conjugate multiplication of this image and the specified image. |
void |
dfht3(float[] x,
int base,
boolean inverse,
int maxN)
Performs an optimized 1D FHT. |
FHT |
divide(FHT fht)
Returns the image resulting from the point by point Hartley division of this image by the specified image. |
ImageStack |
getComplexTransform()
Converts this FHT to a complex Fourier transform and returns it as a two slice stack. |
FHT |
getCopy()
Returns a clone of this FHT. |
ImageProcessor |
getPowerSpectrum()
Returns an 8-bit power spectrum, log-scaled to 1-254. |
void |
inverseTransform()
Performs an inverse transform, converting this image into the space domain. |
FHT |
multiply(FHT fht)
Returns the image resulting from the point by point Hartley multiplication of this image and the specified image. |
boolean |
powerOf2Size()
Returns true of this FHT contains a square image with a width that is a power of two. |
void |
rc2DFHT(float[] x,
boolean inverse,
int maxN)
Performs a 2D FHT (Fast Hartley Transform). |
void |
setShowProgress(boolean showProgress)
Enables/disables display of the progress bar during transforms. |
void |
swapQuadrants()
Swap quadrants 1 and 3 and 2 and 4 of the image contained in this FHT. |
void |
swapQuadrants(ImageProcessor ip)
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. |
java.lang.String |
toString()
Returns a string containing information about this FHT. |
void |
transform()
Performs a foreward transform, converting this image into the frequency domain. |
Methods inherited from class ij.process.FloatProcessor |
---|
abs, add, add, and, applyTable, autoThreshold, convolve, convolve3x3, copyBits, create8BitImage, createImage, createProcessor, crop, dilate, drawPixel, duplicate, erode, exp, fill, fill, filter, findMinAndMax, flipVertical, gamma, get, get, getBackgroundValue, getBicubicInterpolatedPixel, getBufferedImage, getf, getf, getHistogram, getInterpolatedPixel, getMax, getMin, getPixel, getPixel, getPixelInterpolated, getPixels, getPixelsCopy, getPixelValue, getSnapshotPixels, invert, log, max, maxValue, medianFilter, min, minValue, multiply, noise, or, putPixel, putPixel, putPixelValue, reset, reset, resetMinAndMax, resize, rotate, scale, set, set, setBackgroundValue, setColor, setf, setf, setMinAndMax, setPixels, setPixels, setSnapshotPixels, setThreshold, setValue, snapshot, sqr, sqrt, swapPixelArrays, threshold, toFloat, xor |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean quadrantSwapNeeded
public ColorProcessor rgb
public int originalWidth
public int originalHeight
public int originalBitDepth
public java.awt.image.ColorModel originalColorModel
Constructor Detail |
---|
public FHT(ImageProcessor ip)
public FHT()
Method Detail |
---|
public boolean powerOf2Size()
public void transform()
public void inverseTransform()
public void rc2DFHT(float[] x, boolean inverse, int maxN)
public void dfht3(float[] x, int base, boolean inverse, int maxN)
public ImageProcessor getPowerSpectrum()
public ImageStack getComplexTransform()
public void swapQuadrants(ImageProcessor ip)
2 1 3 4
public void swapQuadrants()
public FHT multiply(FHT fht)
public FHT conjugateMultiply(FHT fht)
public FHT divide(FHT fht)
public void setShowProgress(boolean showProgress)
public FHT getCopy()
public java.lang.String toString()
toString
in class ImageProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |