Class convolution
java.lang.Object
|
+--operator
|
+--operator2DDouble
|
+--convolution
- Direct Known Subclasses:
- convolutionPadded, meanSmooth, medianSmooth
- public class convolution
- extends operator2DDouble
The convolution operator, all input/output images are
image2DDouble images, there are 2 inputs - an image and a kernel,
there is 1 output, the actual convolution algorithm code is located
in code/operator/convolution/Convolution.java.
Constructor Summary |
convolution()
No arguments constructor. |
convolution(javax.swing.JPanel panel,
linkData links)
Constructor taking the parent panel for the graphical representation
of this operator and a representation of the links in the system. |
Method Summary |
int |
getNumber()
Returns the number of this operator. |
void |
go()
Runs the operator if both inputs contain data and propagates
it's output to the next operators in the system (operators that
this operator links to). |
int[] |
intscaleclip(int width,
int height,
double scale,
double offset,
int[] input)
|
void |
loadParameters(java.io.StreamTokenizer tokenizer)
Loads the required parameters (number of iterations)
from the input stream, so the operator can be recreated in an
identical state to when it was saved. |
java.lang.String |
saveParameters()
Returns a String representing all the parameters for this operator
for the purpose of saving the system setup (and being able to load
it again at a future date). |
double[][] |
scaleclip(int width,
int height,
double scale,
double offset,
double[][] input)
scales/offsets and clips an image |
Methods inherited from class operator |
getBox,
getName,
getParameters,
getType,
propagate,
propagateSingleLink,
saveOperator,
setBox,
setName,
setType,
showParameters,
updateParameters |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
convolution
public convolution()
- No arguments constructor.
convolution
public convolution(javax.swing.JPanel panel,
linkData links)
- Constructor taking the parent panel for the graphical representation
of this operator and a representation of the links in the system.
- Parameters:
panel
- the parent panel for the operatorBoxlinks
- the representation af the links in the system
getNumber
public int getNumber()
- Returns the number of this operator.
- Returns:
- the number of the operator
saveParameters
public java.lang.String saveParameters()
- Returns a String representing all the parameters for this operator
for the purpose of saving the system setup (and being able to load
it again at a future date).
- Overrides:
- saveParameters in class operator
loadParameters
public void loadParameters(java.io.StreamTokenizer tokenizer)
throws java.io.IOException
- Loads the required parameters (number of iterations)
from the input stream, so the operator can be recreated in an
identical state to when it was saved.
- Parameters:
tokenizer
- the input stream split into tokens- Throws:
- java.io.IOException - if error occurs during token retrieval
- Overrides:
- loadParameters in class operator
scaleclip
public double[][] scaleclip(int width,
int height,
double scale,
double offset,
double[][] input)
- scales/offsets and clips an image
intscaleclip
public int[] intscaleclip(int width,
int height,
double scale,
double offset,
int[] input)
go
public void go()
- Runs the operator if both inputs contain data and propagates
it's output to the next operators in the system (operators that
this operator links to).
- Overrides:
- go in class operator