|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.ComplexImage
A complex image is a set of two RealGrayImage plane: real plane and imaginary plane. ComplexImage implements Image.
| 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(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 sourceROI,
ROI destROI)
Adds a Region of Interest (sourceROI) in another ComplexImage to a Region of Interest (destROI) 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 roi)
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 roi)
Adds a value to a single pixel in a Region of Interest |
ComplexImage |
addbuffer(int w,
int h,
float rColor,
float iColor)
Makes a copy of this image with a buffer so the resulting image has a width w and height h |
ComplexImage |
addbuffer(int w,
int h,
int xoff,
int yoff,
float rColor,
float iColor)
Makes a copy of this image with a buffer so the resulting image has a width w and height h |
Image |
copy()
Makes a deep copy of this image |
Image |
copy(ROI roi)
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 sourceROI,
ROI destROI)
Divides by a Region of Interest (sourceROI) in this image by a Region of Interest (destROI) 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 roi)
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 roi)
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 roi)
Returns the pixel value at the given x, y value of a Region of Interest in the imaginary plane |
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 roi)
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 roi)
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 roi)
Returns the minimum magnitude of a Region of Interest |
void |
multiply(ComplexImage im)
Multiplies this image by another ComplexImage |
void |
multiply(ComplexImage im,
ROI sourceROI,
ROI destROI)
Multiplies a Region of Interest (sourceROI) of another GrayImage by a Region of Interest (destROI) 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 roi)
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 roi)
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 roi)
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 roi)
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 roi)
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 sourceROI,
ROI destROI)
Subtracts a Region of Interest (sourceROI) in another ComplexImage from a Region of Interest (destROI) 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 roi)
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 roi)
Subtracts a value from a single pixel in a Region of Interest |
String |
toString()
Prints the image in integer format. |
String |
toString(ROI roi)
Prints the Region of Interest in integer format. |
int |
X()
Returns the width (maximum x + 1 ) |
int |
Y()
Returns the height (maximum y + 1) |
| 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(Image img)
| Method Detail |
public ImageProducer getJavaImage()
getJavaImage in interface ImageImageProducerpublic final int X()
X in interface Imagepublic final int Y()
Y in interface Image
public ComplexImage addbuffer(int w,
int h,
float rColor,
float iColor)
w - width of buffered imageh - height of buffered imagerColor - default color to buffer real plane withiColor - default color to buffer imaginary plane with
public ComplexImage addbuffer(int w,
int h,
int xoff,
int yoff,
float rColor,
float iColor)
w - width of buffered imageh - height of buffered imagexoff - x offset of this image in the buffered imageyoff - y offset of this image in the buffered imagerColor - default color to buffer real plane withiColor - default color to buffer imaginary plane with
public 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 coordinatey - the Y coordinate
public final float getImag(int x,
int y)
x - the X coordinatey - the Y coordinate
public final void setReal(int x,
int y,
float v)
x - the X coordinatey - the Y coordinatev - the value to set the pixel to
public final void setImag(int x,
int y,
float v)
x - the X coordinatey - the Y coordinatev - the value to set the pixel to
public final void set(int x,
int y,
float r,
float i)
x - the X coordinatey - the Y coordinater - 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-coordinatey - Y-coordinater - 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-coordinatey - Y-coordinater - the value to subtract in the real planei - the value to subtract in the imaginary plane
public final void multiply(int x,
int y,
float r,
float i)
x - X-coordinatey - Y-coordinater - the value to multiply in the real planei - the value to multiply in the imaginary plane
public final void divide(int x,
int y,
float r,
float i)
x - X-coordinatey - Y-coordinater - the value to divide in the real planei - the value to divide 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 String toString()
toString in interface ImagetoString in class Objectpublic Image copy(ROI roi)
copy in interface Imageroi - Region of Interest
public final float getReal(int x,
int y,
ROI roi)
x - the X coordinatey - the Y coordinateroi - Region of Interest
public final float getImag(int x,
int y,
ROI roi)
x - the X coordinatey - the Y coordinateroi - Region of Interest
public final void setReal(int x,
int y,
float v,
ROI roi)
x - the X coordinatey - the Y coordinateroi - Region of Interest
public final void setImag(int x,
int y,
float v,
ROI roi)
x - the X coordinatey - the Y coordinateroi - Region of Interest
public final void set(int x,
int y,
float r,
float i,
ROI roi)
x - the X coordinatey - the Y coordinater - the value to set the pixel to in the real planei - the value to set the pixel to in the imaginary planeroi - Region of Interestpublic final Complex min(ROI roi)
roi - Region of Interestpublic final Complex max(ROI roi)
roi - Region of Interest
public final void add(int x,
int y,
float r,
float i,
ROI roi)
x - X-coordinatey - Y-coordinater - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planeroi - Region of Interest
public final void subtract(int x,
int y,
float r,
float i,
ROI roi)
x - X-coordinatey - Y-coordinater - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planeroi - Region of Interest
public final void multiply(int x,
int y,
float r,
float i,
ROI roi)
x - X-coordinatey - Y-coordinater - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planeroi - Region of Interest
public final void divide(int x,
int y,
float r,
float i,
ROI roi)
x - X-coordinatey - Y-coordinater - the value to add to the pixel in the real planei - the value to add to the pixel in the imaginary planeroi - Region of Interest
public final ComplexImage add(float r,
float i,
ROI roi)
r - value to be added to the pixels in the real planei - value to be added to the pixels in the imaginary planeroi - Region of Interest
public final ComplexImage subtract(float r,
float i,
ROI roi)
r - value to be subtract from the pixels in the real planei - value to be subtracted from pixels in the imaginary planeroi - Region of Interest
public final ComplexImage multiply(float r,
float i,
ROI roi)
r - value to be multiplied by the pixels in the real planei - value to be multiplied by the pixels in the imaginary planeroi - Region of Interest
public final ComplexImage divide(float r,
float i,
ROI roi)
r - value to be divided into the pixels in the real planei - value to be divided into the pixels in the imaginary planeroi - Region of Interest
public String toString(ROI roi)
roi - Region of Interest
public final void add(ComplexImage im,
ROI sourceROI,
ROI destROI)
im - the ComplexImage to addsourceROI - Region of Interest for the Source ImagedestROI - Region of Interest for the Destination Image
public final void subtract(ComplexImage im,
ROI sourceROI,
ROI destROI)
im - the ComplexImage to subtractsourceROI - Region of Interest for the Source ImagedestROI - Region of Interest for the Destination Image
public final void multiply(ComplexImage im,
ROI sourceROI,
ROI destROI)
im - the ComplexImage to multiplysourceROI - Region of Interest for the Source ImagedestROI - Region of Interest for the Destination Image
public final void divide(ComplexImage im,
ROI sourceROI,
ROI destROI)
im - the ComplexImage to dividesourceROI - Region of Interest for the Source ImagedestROI - Region of Interest for the Destination Image
public final RealGrayImage getMagnitudeImage()
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||