@KFStep(name="ImageSaver", category="DataSinks", toolTipText="Save static images to a file", iconPath="weka/gui/knowledgeflow/icons/SerializedModelSaver.gif") public class ImageSaver extends BaseStep
Modifier and Type | Class and Description |
---|---|
static class |
ImageSaver.ImageSaverDefaults |
Constructor and Description |
---|
ImageSaver() |
Modifier and Type | Method and Description |
---|---|
Defaults |
getDefaultSettings()
Get default settings for the step.
|
java.io.File |
getFile()
Get the file to save to
|
weka.knowledgeflow.steps.ImageSaver.ImageFormat |
getFormat()
Get the format of the image to save
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
setFile(java.io.File f)
Set the file to save to
|
void |
setFormat(weka.knowledgeflow.steps.ImageSaver.ImageFormat format)
Set the format of the image to save
|
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getCustomEditorForStep, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
@OptionMetadata(displayName="File to save to", description="<html>The file to save an image to<br>The variable \'image_count\' may be used as<br>part of the filename/path in order to differentiate<br>multiple images.</html>", displayOrder=1) @FilePropertyMetadata(fileChooserDialogType=0, directoriesOnly=false) public void setFile(java.io.File f)
f
- the file to save topublic java.io.File getFile()
@OptionMetadata(displayName="Format to save image as", description="Format to save to", displayOrder=2) public void setFormat(weka.knowledgeflow.steps.ImageSaver.ImageFormat format)
format
- public weka.knowledgeflow.steps.ImageSaver.ImageFormat getFormat()
public void stepInit() throws WekaException
WekaException
- if a problem occurs during initializationpublic java.util.List<java.lang.String> getIncomingConnectionTypes()
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
public void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the payload to processWekaException
- if a problem occurspublic Defaults getDefaultSettings()
getDefaultSettings
in interface Step
getDefaultSettings
in class BaseStep