public class GDiscreteFourierTransformOps extends Object
DiscreteFourierTransformOps which are image type agnostic| Constructor and Description |
|---|
GDiscreteFourierTransformOps() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageFloat,W extends ImageInterleaved> |
createTransform(ImageDataType type)
Creates a
DiscreteFourierTransform for the specified type. |
static void |
magnitude(ImageInterleaved transform,
ImageFloat magnitude)
Computes the magnitude of the complex image:
magnitude = sqrt( real2 + imaginary2 ) |
static void |
multiplyComplex(ImageInterleaved complexA,
ImageInterleaved complexB,
ImageInterleaved complexC)
Performs element-wise complex multiplication between two complex images.
|
static void |
multiplyRealComplex(ImageFloat realA,
ImageInterleaved complexB,
ImageInterleaved complexC)
Performs element-wise complex multiplication between a real image and a complex image.
|
static void |
phase(ImageInterleaved transform,
ImageFloat phase)
Computes the phase of the complex image:
phase = atan2( imaginary , real ) |
static void |
realToComplex(ImageFloat real,
ImageInterleaved complex)
Converts a regular image into a complex interleaved image with the imaginary component set to zero.
|
static void |
shiftZeroFrequency(ImageInterleaved transform,
boolean forward)
Moves the zero-frequency component into the image center (width/2,height/2).
|
public static <T extends ImageFloat,W extends ImageInterleaved> DiscreteFourierTransform<T,W> createTransform(ImageDataType type)
DiscreteFourierTransform for the specified type.type - Image data typeDiscreteFourierTransformDiscreteFourierTransformpublic static void shiftZeroFrequency(ImageInterleaved transform, boolean forward)
transform - the DFT which is to be shifted.forward - If true then it does the shift in the forward direction. If false then it undoes the transforms.public static void magnitude(ImageInterleaved transform, ImageFloat magnitude)
transform - (Input) Complex interleaved imagemagnitude - (Output) Magnitude of imagepublic static void phase(ImageInterleaved transform, ImageFloat phase)
transform - (Input) Complex interleaved imagephase - (output) Phase of imagepublic static void realToComplex(ImageFloat real, ImageInterleaved complex)
real - (Input) Regular image.complex - (Output) Equivalent complex image.public static void multiplyRealComplex(ImageFloat realA, ImageInterleaved complexB, ImageInterleaved complexC)
realA - (Input) Regular imagecomplexB - (Input) Complex imagecomplexC - (Output) Complex imagepublic static void multiplyComplex(ImageInterleaved complexA, ImageInterleaved complexB, ImageInterleaved complexC)
complexA - (Input) Complex imagecomplexB - (Input) Complex imagecomplexC - (Output) Complex imageCopyright © 2013. All Rights Reserved.