public class ComplexImage64 extends java.lang.Object implements ComplexImage
Constructor and Description |
---|
ComplexImage64(Image64 realImage)
This constructor creates an imaginary part filled with zeroes, memory
space permitting.
|
ComplexImage64(Image64 realImage,
Image64 imaginaryImage)
Throws exception if the two images do not match in width, height or
number of bands.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ComplexImage other)
Add both real and imaginary parts of another image to the current image.
|
ComplexImage |
convolve(ComplexImage transformedTemplate,
boolean overwrite)
Transform, multiply, and reverse transform, optionally either returning
a new ComplexImage or overwriting the current one to save memory.
|
void |
dispose()
Free all resources in the component images.
|
void |
divide(ComplexImage other)
Divide this ComplexImage by another, pixel by pixel, the result
replacing the current ComplexImage.
|
ComplexImage |
fft()
Perform Fast Fourier Transform.
|
ComplexImage |
fftInverse()
Perform inverse Fast Fourier Transform.
|
Image64 |
getImaginary()
Get the imaginary part.
|
Image64 |
getReal()
Get the real part.
|
void |
invert()
Invert the values in both images.
|
Image64 |
logModulus()
Return a new single image whose pixels are the log10 moduli,
log10 (sqrt (re * re + im * im)) of the complex values.
|
Image64 |
modulus()
Return a single image whose pixels are the moduli,
sqrt (re * re + im * im) of the complex values.
|
void |
multiply(ComplexImage other)
Multiply two ComplexImages together, pixel by pixel, the result
replacing the current ComplexImage.
|
void |
multiply(double factor)
Multiply the levels in both real and imaginary parts by the given factor.
|
void |
subtract(ComplexImage other)
Subtract both real and imaginary parts of another image from the
current image.
|
public ComplexImage64(Image64 realImage)
public ComplexImage64(Image64 realImage, Image64 imaginaryImage) throws IncompatibleImageException
IncompatibleImageException
public Image64 getReal()
getReal
in interface ComplexImage
public Image64 getImaginary()
getImaginary
in interface ComplexImage
public void add(ComplexImage other) throws IncompatibleImageException
add
in interface ComplexImage
IncompatibleImageException
public ComplexImage convolve(ComplexImage transformedTemplate, boolean overwrite)
convolve
in interface ComplexImage
public void dispose()
dispose
in interface ComplexImage
public ComplexImage fft()
ComplexImage
fft
in interface ComplexImage
public ComplexImage fftInverse()
ComplexImage
fftInverse
in interface ComplexImage
public void invert()
invert
in interface ComplexImage
public Image64 logModulus()
public Image64 modulus()
ComplexImage
modulus
in interface ComplexImage
public void multiply(ComplexImage other)
multiply
in interface ComplexImage
public void multiply(double factor)
multiply
in interface ComplexImage
public void divide(ComplexImage other)
public void subtract(ComplexImage other) throws IncompatibleImageException
subtract
in interface ComplexImage
IncompatibleImageException