mosaic.sim.neuron.netoutputs
Class ImageOutput
java.lang.Object
|
+--mosaic.sim.neuron.netoutputs.ImageOutput
- All Implemented Interfaces:
- MatrixOutputListener, VectorOutputListener
- public class ImageOutput
- extends java.lang.Object
- implements VectorOutputListener, MatrixOutputListener
This class receives vector or matrix output events from some spike decoder
and transforms the values into an image, which is immediately saved in the
file given to the constructor.
This class needs the JAI (Java Advanced Imaging) library to do its work.
- See Also:
VectorOutputListener
,
MatrixOutputListener
,
ImageInput
Field Summary |
protected java.awt.image.ColorModel |
colorModel
|
protected java.awt.image.SampleModel |
sampleModel
|
protected javax.media.jai.ParameterBlockJAI |
savePB
|
protected int |
width
|
Constructor Summary |
ImageOutput(java.lang.String filename,
java.lang.String format,
int width,
java.awt.image.ColorModel colorModel,
java.awt.image.SampleModel sampleModel)
|
Method Summary |
void |
outputEvent(double[] vector)
Implementation of VectorOutputListener.outputEvent. |
void |
outputEvent(double[][] matrix)
Implementation of MatrixOutputListener.outputEvent. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
savePB
protected javax.media.jai.ParameterBlockJAI savePB
width
protected int width
colorModel
protected java.awt.image.ColorModel colorModel
sampleModel
protected java.awt.image.SampleModel sampleModel
ImageOutput
public ImageOutput(java.lang.String filename,
java.lang.String format,
int width,
java.awt.image.ColorModel colorModel,
java.awt.image.SampleModel sampleModel)
outputEvent
public void outputEvent(double[] vector)
- Implementation of VectorOutputListener.outputEvent.
- Specified by:
outputEvent
in interface VectorOutputListener
- Following copied from interface:
mosaic.sim.neuron.netoutputs.VectorOutputListener
- Parameters:
vector
- The real numbered values corresponding to the spike series
using the respective coding scheme implemented by the
Spike decoder.
outputEvent
public void outputEvent(double[][] matrix)
- Implementation of MatrixOutputListener.outputEvent.
- Specified by:
outputEvent
in interface MatrixOutputListener
- Following copied from interface:
mosaic.sim.neuron.netoutputs.MatrixOutputListener
- Parameters:
matrix
- The real numbered values corresponding to the spike series
using the respective coding scheme implemented by the
Spike decoder.