|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.engine.Synapse
org.joone.io.StreamOutputSynapse
org.joone.io.ImageOutputSynapse
public class ImageOutputSynapse
This class collects the output from the connected layer and places it into an image file. Images can be produced in GIF, JPG and PNG formats.
Colour Mode In colour mode ImageOutputSynapse expects seperate RGB input values in the range 0 to 1 from the connected layer. So to produce an image of width 10 and height 10 there must be 10x10x3 inputs from the previous layer/s. The red, green and blue components in the final image are set using the individual component values from the input.
Non Colour Mode / Grey Scale Mode In this mode the synapse treats each input value as a grey scale value for each pixel. In this mode only Width*Height values are required. To produce the final image the Red, Green and Blue components are the set to this same value.
Field Summary | |
---|---|
int |
GIF
|
int |
JPG
|
int |
PNG
|
(package private) static long |
serialVersionUID
|
Fields inherited from class org.joone.io.StreamOutputSynapse |
---|
fifo, nextPlugIn |
Fields inherited from class org.joone.engine.Synapse |
---|
array, b_pattern, bitems, bouts, count, enabled, fwdLock, inps, items, learnable, m_batch, m_pattern, myLearner, outs, revLock |
Constructor Summary | |
---|---|
ImageOutputSynapse()
Creates a new instance of ImageOutputSynapse |
Method Summary | |
---|---|
java.util.TreeSet |
check()
Checks and returns any problems found with the settings of this synapse. |
boolean |
getColourMode()
Determines if this synapse is in colour mode. |
int |
getHeight()
Gets the desired height of the generated image files. |
int |
getImageFileType()
Obtains the image type JPG = 1, GIF = 2, PNG = 3 of the format of the output files. |
java.lang.String |
getOutputDirectory()
Gets the directory where Image files will be created. |
int |
getWidth()
Gets the desired width of the generated image files. |
void |
setColourMode(boolean ColourMode)
Sets the colour mode of this synapse. |
void |
setHeight(int Height)
Sets the desired height of the generated image files. |
void |
setImageFileType(int ImageFileType)
Sets the image type JPG = 1, GIF = 2, PNG = 3 of the format of the generated image files. |
void |
setOutputDirectory(java.lang.String OutputDirectory)
Sets the name of the directory where Image files will be created. |
void |
setWidth(int Width)
Sets the desired width of the generated image files. |
void |
write(Pattern pattern)
Writes the Neural Network pattern to an Image file, the Image type is specified by the ImageFileType property. |
Methods inherited from class org.joone.io.StreamOutputSynapse |
---|
addPlugIn, backward, dataChanged, forward, fwdPut, getFifo, getPlugIn, getSeparator, isBuffered, removeAllPlugIns, revGet, setArrays, setBuffered, setDimensions, setPlugIn, setSeparator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
public final int JPG
public final int GIF
public final int PNG
Constructor Detail |
---|
public ImageOutputSynapse()
Method Detail |
---|
public void write(Pattern pattern)
write
in class StreamOutputSynapse
public java.lang.String getOutputDirectory()
public void setOutputDirectory(java.lang.String OutputDirectory)
OutputDirectory
- The directory used to store generated image files.public int getImageFileType()
public void setImageFileType(int ImageFileType)
ImageFileType
- JPG = 1, GIF = 2, PNG = 3.public int getWidth()
public void setWidth(int Width)
public int getHeight()
public void setHeight(int Height)
public boolean getColourMode()
public void setColourMode(boolean ColourMode)
ColourMode
- true if in colour mode, false if in grey scale mode.public java.util.TreeSet check()
check
in interface NeuralElement
check
in class StreamOutputSynapse
InputPaternListener
,
OutputPaternListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |