|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jm.jigl.ComplexSignal
A complex signal is a set of two real gray signal planes.
ComplexSignal implements Signal
jigl.math.ComplexSignal
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 height and width 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 height and width of x and y repectively |
Method Summary | |
void |
add(ComplexSignal im)
Adds another ComplexSignal to this signal |
void |
add(ComplexSignal im,
ROI sourceSignal,
ROI destSignal)
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 r2)
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 r2)
Adds a value to a single pixel in a Region of Interest |
Signal |
copy()
Makes a deep copy of this signal |
Signal |
copy(ROI r)
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 im)
Divides this signal by another ComplexSignal |
void |
divide(ComplexSignal im,
ROI sourceSignal,
ROI destSignal)
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 r2)
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 value |
void |
divide(int x,
float r,
float i,
ROI r2)
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 r)
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 r)
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 r)
Returns the maximum magnitude in a Region of Interest |
Complex |
min()
Returns the minimum magnitude in this signal |
Complex |
min(ROI r)
Returns the minimum magnitude in a Region of Interest |
void |
multiply(ComplexSignal im)
Multiplies this signal by another ComplexSignal |
void |
multiply(ComplexSignal im,
ROI sourceSignal,
ROI destSignal)
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 r2)
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 value |
void |
multiply(int x,
float r,
float i,
ROI r2)
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 r2)
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 r)
Sets the pixel value at the given x value of a Region of Interest in the imaginary plane |
void |
setImag(RealSignal pl)
Set the real 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 r)
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 im)
Subtracts another ComplexSignal from this signal |
void |
subtract(ComplexSignal im,
ROI sourceSignal,
ROI destSignal)
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 r2)
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 r2)
Subtracts a value from a single pixel in a Region of Interest |
java.lang.String |
toString()
Prints the string in integer format. |
java.lang.String |
toString(ROI r)
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 Signal
public final RealSignal real()
public final RealSignal imag()
public Signal copy()
copy
in interface Signal
public 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 real plane topublic final float getReal(int x)
x
- the length coordinantpublic final float getImag(int x)
x
- the length coordinantpublic final void setReal(int x, float v)
x
- the length coordinantv
- the value to set the pixel topublic final void setImag(int x, float v)
x
- the length coordinantv
- the value to set the pixel topublic final void set(int x, float r, float i)
x
- the length 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, float r, float i)
x
- length-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 subtract(int x, float r, float i)
x
- length-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 multiply(int x, float r, float i)
x
- length-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 divide(int x, float r, float i)
x
- length-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(ComplexSignal im)
im
- the ComplexSignal to add
public final void subtract(ComplexSignal im)
im
- the ComplexSignal to subtract
public final ComplexSignal diff(ComplexSignal s)
public final void multiply(ComplexSignal im)
im
- the ComplexSignal to multiply
public final void divide(ComplexSignal im)
im
- the ComplexSignal to divide
public final ComplexSignal 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 ComplexSignal 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 ComplexSignal 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 ComplexSignal 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 Signal
toString
in class java.lang.Object
public Signal copy(ROI r)
r
- Region of Interest
public final float getReal(int x, ROI r)
x
- the length coordinantr
- Region of Interestpublic final float getImag(int x, ROI r)
x
- the length coordinantr
- Region of Interestpublic final void setReal(int x, float v, ROI r)
x
- the length coordinantr
- Region of Interestpublic final void setImag(int x, float v, ROI r)
x
- the length coordinantr
- Region of Interestpublic final void set(int x, float r, float i, ROI r2)
x
- the length 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 Interestpublic final void add(int x, float r, float i, ROI r2)
x
- length-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 Interestpublic final void subtract(int x, float r, float i, ROI r2)
x
- length-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 Interestpublic final void multiply(int x, float r, float i, ROI r2)
x
- length-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 Interestpublic final void divide(int x, float r, float i, ROI r2)
x
- length-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 Interestpublic final ComplexSignal 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 ComplexSignal 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 ComplexSignal 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 ComplexSignal 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 Interestpublic final void add(ComplexSignal im, ROI sourceSignal, ROI destSignal)
im
- the ComplexSignal to addsourceSignal
- Region of Interest for the Source SignaldestSignal
- Region of Interest for the Destination Signal
public final void subtract(ComplexSignal im, ROI sourceSignal, ROI destSignal)
im
- the ComplexSignal to subtractsourceSignal
- Region of Interest for the Source SignaldestSignal
- Region of Interest for the Destination Signal
public final void multiply(ComplexSignal im, ROI sourceSignal, ROI destSignal)
im
- the ComplexSignal to multiplysourceSignal
- Region of Interest for the Source SignaldestSignal
- Region of Interest for the Destination Signal
public final void divide(ComplexSignal im, ROI sourceSignal, ROI destSignal)
im
- the ComplexSignal to dividesourceSignal
- Region of Interest for the Source SignaldestSignal
- Region of Interest for the Destination Signal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |