|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jm.jigl.ComplexImage
A complex image is a set of two real gray image planes.
ComplexImage implements Image
jigl.image.ComplexImage| Field Summary | |
protected RealGrayImage |
imag
The Imaginary part of the image |
protected RealGrayImage |
real
The Real plane of the image |
protected int |
X
Cartesian width of the image |
protected int |
Y
Cartesian height of the image |
| Constructor Summary | |
ComplexImage()
Creates a ComplexImage with height and width of zero and the real and imaginary planes set to null |
|
ComplexImage(ComplexImage img)
Creates a ComplexImage as a shallow copy of a complex image |
|
ComplexImage(java.awt.Image img)
Creates a ComplexImage from the standard java.awt.Image |
|
ComplexImage(int x,
int y)
Creates a ComplexImage with height and width of x and y repectively |
|
| Method Summary | |
void |
add(ComplexImage im)
Adds another ComplexImage to this image |
void |
add(ComplexImage im,
ROI sourceImage,
ROI destImage)
Adds a Region of Interest in another GrayImage from a Region of Interest of this image |
ComplexImage |
add(float r,
float i)
Adds a value to all the pixels in this image |
ComplexImage |
add(float r,
float i,
ROI r2)
Adds a value to all the pixels in a Region of Interest |
void |
add(int x,
int y,
float r,
float i)
Adds a value to a single pixel |
void |
add(int x,
int y,
float r,
float i,
ROI r2)
Adds a value to a single pixel in a Region of Interest |
Image |
copy()
Makes a deep copy of this image |
Image |
copy(ROI r)
Makes a deep copy of a Region of Interest |
ComplexImage |
diff(ComplexImage im)
Subtracts a RealColorImage from this image and returns the absolute value |
void |
divide(ComplexImage im)
Divides this image by another ComplexImage |
void |
divide(ComplexImage im,
ROI sourceImage,
ROI destImage)
Divides by a Region of Interest in this image by a Region of Interest of another ComplexImage |
ComplexImage |
divide(float r,
float i)
Divides all the pixels by a value in this image |
ComplexImage |
divide(float r,
float i,
ROI r2)
Divides all the pixels by a value in a Region of Interest |
void |
divide(int x,
int y,
float r,
float i)
Divide a single pixel by a value |
void |
divide(int x,
int y,
float r,
float i,
ROI r2)
Divide a single pixel by a value in a Region of Interest |
float |
getImag(int x,
int y)
Returns the pixel value at the given x, y value of the imaginary plane |
float |
getImag(int x,
int y,
ROI r)
Returns the pixel value at the given x, y value of a Region of Interest in the imaginary plane |
java.awt.image.ImageProducer |
getJavaImage()
Returns the Java Image from this image |
RealGrayImage |
getMagnitudeImage()
Returns the MagnitudeImage (RealGrayImage) of the this ComplexImage |
float |
getReal(int x,
int y)
Returns the pixel value at the given x, y value of the real plane |
float |
getReal(int x,
int y,
ROI r)
Returns the pixel value at the given x, y value of a Region of Interest in the real plane |
RealGrayImage |
imag()
Returns the imaginary plane of this image |
Complex |
max()
Returns the maximum magnitude of the complex number in this image |
Complex |
max(ROI r)
Returns the maximum magnitude of a Region of Interest |
Complex |
min()
Returns the minimum magnitude of the complex number in this image |
Complex |
min(ROI r)
Returns the minimum magnitude of a Region of Interest |
void |
multiply(ComplexImage im)
Multiplies this image by another ComplexImage |
void |
multiply(ComplexImage im,
ROI sourceImage,
ROI destImage)
Multiplies a Region of Interest of another GrayImage by a Region of Interest of this image |
ComplexImage |
multiply(float r,
float i)
Multiplies all the pixels in this image by a value |
ComplexImage |
multiply(float r,
float i,
ROI r2)
Multiplies all the pixels by a value in a Region of Interest |
void |
multiply(int x,
int y,
float r,
float i)
Multiply a single pixel by a value |
void |
multiply(int x,
int y,
float r,
float i,
ROI r2)
Multiply a single pixel by a value in a Region of Interest |
RealGrayImage |
real()
Returns the real plane of this image |
void |
set(int x,
int y,
float r,
float i)
Sets the pixel value at x, y to a given value of this image |
void |
set(int x,
int y,
float r,
float i,
ROI r2)
Sets the pixel value at x, y to a given value in a Region of Interest |
void |
setImag(int x,
int y,
float v)
Sets the pixel value at x, y to a given value of the imaginary |
void |
setImag(int x,
int y,
float v,
ROI r)
Sets the pixel value at the given x, y value of a Region of Interest in the imaginary plane |
void |
setImag(RealGrayImage pl)
Set the real plane of this image |
void |
setReal(int x,
int y,
float v)
Sets the pixel value at x, y to a given value of the real plane |
void |
setReal(int x,
int y,
float v,
ROI r)
Sets tthe pixel value at the given x, y value of a Region of Interest in the real plane |
void |
setReal(RealGrayImage pl)
Set the real plane of this image |
void |
subtract(ComplexImage im)
Subtracts another ComplexImage from this image |
void |
subtract(ComplexImage im,
ROI sourceImage,
ROI destImage)
Subtracts a Region of Interest in another GrayImage from a Region of Interest of this image |
ComplexImage |
subtract(float r,
float i)
Subtracts a value from all the pixels in this image |
ComplexImage |
subtract(float r,
float i,
ROI r2)
Subtracts a value from all the pixels in a Region of Interest |
void |
subtract(int x,
int y,
float r,
float i)
Subtracts a value from a single pixel |
void |
subtract(int x,
int y,
float r,
float i,
ROI r2)
Subtracts a value from a single pixel in a Region of Interest |
java.lang.String |
toString()
Prints the image in integer format. |
java.lang.String |
toString(ROI r)
Prints the Region of Interest in integer format. |
int |
X()
Returns the width (maximum X value) |
int |
Y()
Returns the height (maximum Y value) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected RealGrayImage real
protected RealGrayImage imag
protected int X
protected int Y
| Constructor Detail |
public ComplexImage()
public ComplexImage(int x,
int y)
public ComplexImage(ComplexImage img)
public ComplexImage(java.awt.Image img)
| Method Detail |
public java.awt.image.ImageProducer getJavaImage()
getJavaImage in interface ImageImageProducerpublic final int X()
X in interface Imagepublic final int Y()
Y in interface Imagepublic Image copy()
copy in interface Imagepublic final RealGrayImage real()
public final void setReal(RealGrayImage pl)
pl - the RealGrayImage to set the real plane topublic final RealGrayImage imag()
public final void setImag(RealGrayImage pl)
pl - the RealGrayImage to set the real plane to
public final float getReal(int x,
int y)
x - the X coordinanty - the Y coordinant
public final float getImag(int x,
int y)
x - the X coordinanty - the Y coordinant
public final void setReal(int x,
int y,
float v)
x - the X coordinanty - the Y coordinantv - the value to set the pixel to
public final void setImag(int x,
int y,
float v)
x - the X coordinanty - the Y coordinantv - the value to set the pixel to
public final void set(int x,
int y,
float r,
float i)
x - the X coordinanty - the Y coordinantr - the value to set the pixel to in the real planei - the value to set the pixel to in the imaginary planepublic final Complex min()
public final Complex max()
public final void add(int x,
int y,
float r,
float i)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary plane
public final void subtract(int x,
int y,
float r,
float i)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary plane
public final void multiply(int x,
int y,
float r,
float i)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary plane
public final void divide(int x,
int y,
float r,
float i)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planepublic final void add(ComplexImage im)
im - the ComplexImage to add
public final void subtract(ComplexImage im)
im - the ComplexImage to subtract
public final ComplexImage diff(ComplexImage im)
im - the RealColorImage to diff
public final void multiply(ComplexImage im)
im - the ComplexImage to multiply
public final void divide(ComplexImage im)
im - the ComplexImage to divide
public final ComplexImage add(float r,
float i)
r - value to be added to the pixels in the real planei - value to be added to the pixels in the imaginary plane
public final ComplexImage subtract(float r,
float i)
r - value to be subtract from the pixels in the real planei - value to be subtracted from pixels in the imaginary plane
public final ComplexImage multiply(float r,
float i)
r - value to be multiplied by the pixels in the real planei - value to be multiplied by the pixels in the imaginary plane
public final ComplexImage divide(float r,
float i)
r - value to be divided into the pixels in the real planei - value to be divided into the pixels in the imaginary plane
public java.lang.String toString()
toString in interface ImagetoString in class java.lang.Objectpublic Image copy(ROI r)
copy in interface Imager - Region of Interest
public final float getReal(int x,
int y,
ROI r)
x - the X coordinanty - the Y coordinantr - Region of Interest
public final float getImag(int x,
int y,
ROI r)
x - the X coordinanty - the Y coordinantr - Region of Interest
public final void setReal(int x,
int y,
float v,
ROI r)
x - the X coordinanty - the Y coordinantr - Region of Interest
public final void setImag(int x,
int y,
float v,
ROI r)
x - the X coordinanty - the Y coordinantr - Region of Interest
public final void set(int x,
int y,
float r,
float i,
ROI r2)
x - the X coordinanty - the Y coordinantr - the value to set the pixel to in the real planei - the value to set the pixel to in the imaginary planer2 - Region of Interestpublic final Complex min(ROI r)
r - Region of Interestpublic final Complex max(ROI r)
r - Region of Interest
public final void add(int x,
int y,
float r,
float i,
ROI r2)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planer2 - Region of Interest
public final void subtract(int x,
int y,
float r,
float i,
ROI r2)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planer2 - Region of Interest
public final void multiply(int x,
int y,
float r,
float i,
ROI r2)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planer2 - Region of Interest
public final void divide(int x,
int y,
float r,
float i,
ROI r2)
x - X-coordinanty - Y-coordinantr - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planer2 - Region of Interest
public final ComplexImage add(float r,
float i,
ROI r2)
r - value to be added to the pixels in the real planei - value to be added to the pixels in the imaginary planer2 - Region of Interest
public final ComplexImage subtract(float r,
float i,
ROI r2)
r - value to be subtract from the pixels in the real planei - value to be subtracted from pixels in the imaginary planer2 - Region of Interest
public final ComplexImage multiply(float r,
float i,
ROI r2)
r - value to be multiplied by the pixels in the real planei - value to be multiplied by the pixels in the imaginary planer2 - Region of Interest
public final ComplexImage divide(float r,
float i,
ROI r2)
r - value to be divided into the pixels in the real planei - value to be divided into the pixels in the imaginary planer2 - Region of Interest
public java.lang.String toString(ROI r)
r - Region of Interest
public final void add(ComplexImage im,
ROI sourceImage,
ROI destImage)
im - the ComplexImage to addsourceImage - Region of Interest for the Source ImagedestImage - Region of Interest for the Destination Image
public final void subtract(ComplexImage im,
ROI sourceImage,
ROI destImage)
im - the ComplexImage to subtractsourceImage - Region of Interest for the Source ImagedestImage - Region of Interest for the Destination Image
public final void multiply(ComplexImage im,
ROI sourceImage,
ROI destImage)
im - the ComplexImage to multiplysourceImage - Region of Interest for the Source ImagedestImage - Region of Interest for the Destination Image
public final void divide(ComplexImage im,
ROI sourceImage,
ROI destImage)
im - the ComplexImage to dividesourceImage - Region of Interest for the Source ImagedestImage - Region of Interest for the Destination Image
public final RealGrayImage getMagnitudeImage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||