|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.utils.FFT
Computes the Fast Fourier Transform of an image. Please note, the input images must be square and a power of two. To get the correct shape of Fourier transform, you should shif the result image both right by half width and up by half height.
If you apply a forward FFT and finally apply an inverse FFT, be sure to adjust the range of the final image because it may become very big or small.
| Field Summary | |
private static int |
IMAG
Static constant definition, which is 2 |
private static int |
REAL
Static constant definition, which is 1 |
| Constructor Summary | |
FFT()
Default constructor. |
|
| Method Summary | |
private static ComplexImage |
convertToComplex(double[] data,
int[] nn)
Utlity method |
private static ComplexImage |
doFFT(Image im,
boolean forward)
Utility function |
static ComplexImage |
forward(Image im)
Perform the forward Fast Fourier Transform on im |
private static ComplexImage |
fourn(double[] data,
int[] nn,
int ndim,
boolean forward)
Utility methods |
static ComplexImage |
reverse(Image im)
Perform the forward Fast Fourier Transform on im |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int REAL
private static final int IMAG
| Constructor Detail |
public FFT()
| Method Detail |
public static ComplexImage forward(Image im)
im
public static ComplexImage reverse(Image im)
im
private static ComplexImage doFFT(Image im,
boolean forward)
private static ComplexImage fourn(double[] data,
int[] nn,
int ndim,
boolean forward)
private static ComplexImage convertToComplex(double[] data,
int[] nn)
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||