|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.signal.ComplexSignal
A complex signal is a set of two RealSignal planes: real plane and imagenary plane.
| Field Summary | |
protected RealSignal |
imag
The Imaginary part of the signal |
protected int |
length
Cartesian length of the signal |
protected RealSignal |
real
The Real plane of the signal |
| Constructor Summary | |
ComplexSignal()
Creates a ComplexSignal with length of zero and the real and imaginary planes set to null |
|
ComplexSignal(ComplexSignal s)
Creates a ComplexSignal as a shallow copy of a complex signal |
|
ComplexSignal(int x)
Creates a ComplexSignal with length of x |
|
| Method Summary | |
void |
add(ComplexSignal s)
Adds another ComplexSignal to this signal |
void |
add(ComplexSignal s,
ROI sourceROI,
ROI destROI)
Adds a Region of Interest in another GraySignal from a Region of Interest of this signal |
ComplexSignal |
add(float r,
float i)
Adds a value to all the pixels in this signal. |
ComplexSignal |
add(float r,
float i,
ROI roi)
Adds a value to all the pixels in a Region of Interest |
void |
add(int x,
float r,
float i)
Adds a value to a single pixel |
void |
add(int x,
float r,
float i,
ROI roi)
Adds a value to a single pixel in a Region of Interest |
Signal |
copy()
Makes a deep copy of this signal |
Signal |
copy(ROI roi)
Makes a deep copy of a Region of Interest |
ComplexSignal |
diff(ComplexSignal s)
Subtracts the second signal from the first and returns the absolute value |
void |
divide(ComplexSignal s)
Divides this signal by another ComplexSignal |
void |
divide(ComplexSignal s,
ROI sourceROI,
ROI destROI)
Divides by a Region of Interest in this signal by a Region of Interest of another ComplexSignal |
ComplexSignal |
divide(float r,
float i)
Divides all the pixels by a value in this signal. |
ComplexSignal |
divide(float r,
float i,
ROI roi)
Divides all the pixels by a value in a Region of Interest |
void |
divide(int x,
float r,
float i)
Divide a single pixel by a Complex number (r,i) |
void |
divide(int x,
float r,
float i,
ROI roi)
Divide a single pixel by a value in a Region of Interest |
float |
getImag(int x)
Returns the pixel value at the given x value of the imaginary plane |
float |
getImag(int x,
ROI roi)
Returns the pixel value at the given x value of a Region of Interest in the imaginary plane |
float |
getReal(int x)
Returns the pixel value at the given x value of the real plane |
float |
getReal(int x,
ROI roi)
Returns the pixel value at the given x value of a Region of Interest in the real plane |
RealSignal |
imag()
Makes a shallow copy of the imaginary plane |
int |
length()
Returns the length of the signal |
Complex |
max()
Returns the maximum magnitude in this signal |
Complex |
max(ROI roi)
Returns the maximum magnitude in a Region of Interest |
Complex |
min()
Returns the minimum magnitude in this signal |
Complex |
min(ROI roi)
Returns the minimum magnitude in a Region of Interest |
void |
multiply(ComplexSignal s)
Multiplies this signal by another ComplexSignal |
void |
multiply(ComplexSignal s,
ROI sourceROI,
ROI destROI)
Multiplies a Region of Interest of another GraySignal by a Region of Interest of this signal |
ComplexSignal |
multiply(float r,
float i)
Multiplies all the pixels in this signal by a value. |
ComplexSignal |
multiply(float r,
float i,
ROI roi)
Multiplies all the pixels by a value in a Region of Interest |
void |
multiply(int x,
float r,
float i)
Multiply a single pixel by a Complex number (r,i) |
void |
multiply(int x,
float r,
float i,
ROI roi)
Multiply a single pixel by a value in a Region of Interest |
RealSignal |
real()
Makes a shallow copy of the real plane |
void |
set(int x,
float r,
float i)
Sets the pixel value at x to a given value of this signal |
void |
set(int x,
float r,
float i,
ROI roi)
Sets the pixel value at x to a given value in a Region of Interest |
void |
setImag(int x,
float v)
Sets the pixel value at x to a given value of the imaginary |
void |
setImag(int x,
float v,
ROI roi)
Sets the pixel value at the given x value of a Region of Interest in the imaginary plane |
void |
setImag(RealSignal pl)
Set the imaginary plane of this signal |
void |
setReal(int x,
float v)
Sets the pixel value at x to a given value of the real plane |
void |
setReal(int x,
float v,
ROI roi)
Sets tthe pixel value at the given x value of a Region of Interest in the real plane |
void |
setReal(RealSignal pl)
Set the real plane of this signal |
void |
subtract(ComplexSignal s)
Subtracts another ComplexSignal from this signal. |
void |
subtract(ComplexSignal s,
ROI sourceROI,
ROI destROI)
Subtracts a Region of Interest in another GraySignal from a Region of Interest of this signal |
ComplexSignal |
subtract(float r,
float i)
Subtracts a value from all the pixels in this signal. |
ComplexSignal |
subtract(float r,
float i,
ROI roi)
Subtracts a value from all the pixels in a Region of Interest |
void |
subtract(int x,
float r,
float i)
Subtracts a value from a single pixel |
void |
subtract(int x,
float r,
float i,
ROI roi)
Subtracts a value from a single pixel in a Region of Interest |
String |
toString()
Prints the string in integer format. |
String |
toString(ROI roi)
Prints the string in integer format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected RealSignal real
protected RealSignal imag
protected int length
| Constructor Detail |
public ComplexSignal()
public ComplexSignal(int x)
public ComplexSignal(ComplexSignal s)
| Method Detail |
public final int length()
length in interface Signalpublic final RealSignal real()
public final RealSignal imag()
public Signal copy()
copy in interface Signalpublic final void setReal(RealSignal pl)
pl - the RealSignal to set the real plane topublic final void setImag(RealSignal pl)
pl - the RealSignal to set the imaginary plane topublic final float getReal(int x)
x - the length coordinatepublic final float getImag(int x)
x - the length coordinate
public final void setReal(int x,
float v)
x - the length coordinatev - the value to set the pixel to
public final void setImag(int x,
float v)
x - the length coordinatev - the value to set the pixel to
public final void set(int x,
float r,
float i)
x - the length 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,
float r,
float i)
x - length-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,
float r,
float i)
x - length-coordinater - the value to subtract to the pixel in the real planei - the value to subtract to the pixel in the imaginary plane
public final void multiply(int x,
float r,
float i)
x - length-coordinater - the value to multiply to the pixel in the real planei - the value to multiply to the pixel in the imaginary plane
public final void divide(int x,
float r,
float i)
x - length-coordinater - the value to divide to the pixel in the real planei - the value to divide to the pixel in the imaginary planepublic final void add(ComplexSignal s)
s - the ComplexSignal to add
public final void subtract(ComplexSignal s)
s - the ComplexSignal to subtract
public final ComplexSignal diff(ComplexSignal s)
public final void multiply(ComplexSignal s)
s - the ComplexSignal to multiply
public final void divide(ComplexSignal s)
s - the ComplexSignal to divide
public final ComplexSignal add(float r,
float i)
this is changed.
- Parameters:
r - value to be added to the pixels in the real planei - value to be added to the pixels in the imaginary plane
- Returns:
- this
public final ComplexSignal subtract(float r,
float i)
this is changed.
- Parameters:
r - value to be subtract from the pixels in the real planei - value to be subtracted from pixels in the imaginary plane
- Returns:
- this
public final ComplexSignal multiply(float r,
float i)
this is changed.
- Parameters:
r - value to be multiplied by the pixels in the real planei - value to be multiplied by the pixels in the imaginary plane
- Returns:
- this
public final ComplexSignal divide(float r,
float i)
this is changed.
- Parameters:
r - value to be divided into the pixels in the real planei - value to be divided into the pixels in the imaginary plane
- Returns:
- this
public String toString()
toString in interface SignaltoString in class Objectpublic Signal copy(ROI roi)
roi - Region of Interest
public final float getReal(int x,
ROI roi)
x - the length coordinate (starting from roi.lbound())roi - Region of Interest
public final float getImag(int x,
ROI roi)
x - the length coordinate (starting from roi.lbound())roi - Region of Interest
public final void setReal(int x,
float v,
ROI roi)
x - the length coordinate (starting from roi.lbound())v - the value to setroi - Region of Interest
public final void setImag(int x,
float v,
ROI roi)
x - the length coordinate (starting from roi.lbound())v - the value to setroi - Region of Interest
public final void set(int x,
float r,
float i,
ROI roi)
x - the length coordinate (starting from roi.lbound())r - 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,
float r,
float i,
ROI roi)
x - length-coordinate (starting from roi.lbound())r - 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,
float r,
float i,
ROI roi)
x - length-coordinate (starting from roi.lbound())r - 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,
float r,
float i,
ROI roi)
x - length-coordinate (starting from roi.lbound())r - 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,
float r,
float i,
ROI roi)
x - length-coordinate (starting from roi.lbound())r - 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 ComplexSignal 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 ComplexSignal 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 ComplexSignal 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 ComplexSignal 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(ComplexSignal s,
ROI sourceROI,
ROI destROI)
s - the ComplexSignal to addsourceROI - Region of Interest for the Source SignaldestROI - Region of Interest for the Destination Signal
public final void subtract(ComplexSignal s,
ROI sourceROI,
ROI destROI)
s - the ComplexSignal to subtractsourceROI - Region of Interest for the Source SignaldestROI - Region of Interest for the Destination Signal
public final void multiply(ComplexSignal s,
ROI sourceROI,
ROI destROI)
s - the ComplexSignal to multiplysourceROI - Region of Interest for the Source SignaldestROI - Region of Interest for the Destination Signal
public final void divide(ComplexSignal s,
ROI sourceROI,
ROI destROI)
s - the ComplexSignal to dividesourceROI - Region of Interest for the Source SignaldestROI - Region of Interest for the Destination Signal
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||