Package adams.data.image.features
Class AbstractScript
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<AbstractImageFeatureGenerator>
,SizeOfHandler
,AdditionalOptionsHandler
,Serializable
,Comparable
public abstract class AbstractScript extends AbstractBufferedImageFeatureGenerator implements AdditionalOptionsHandler
Ancestor for BufferedImage feature generator scripts.
Scripts of scripting languages like Jython or Groovy need to be derived from this class.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AdditionalOptions
m_AdditionalOptions
for storing the additional options.-
Fields inherited from class adams.data.image.AbstractImageFeatureGenerator
m_Converter, m_Fields, m_Notes, m_Prefix
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List[]
doGenerateRows(BufferedImageContainer img)
Performs the actual feature genration.List<Object>[]
generateRows(BufferedImageContainer img)
Performs the actual feature genration.AdditionalOptions
getAdditionalOptions()
Returns the value associated with the (additional) option.protected void
initialize()
Initializes the members.void
setAdditionalOptions(AdditionalOptions options)
Sets the additional options.-
Methods inherited from class adams.data.image.AbstractImageFeatureGenerator
checkData, cleanUp, compareTo, converterTipText, createHeader, defineOptions, destroy, equals, fieldsTipText, generate, getConverter, getDatasetFormat, getFields, getNotes, getPrefix, getRowFormat, notesTipText, postProcessHeader, postProcessRow, postProcessRows, prefixTipText, reset, setConverter, setFields, setNotes, setPrefix, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_AdditionalOptions
protected AdditionalOptions m_AdditionalOptions
for storing the additional options.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractOptionHandler
-
setAdditionalOptions
public void setAdditionalOptions(AdditionalOptions options)
Sets the additional options.- Specified by:
setAdditionalOptions
in interfaceAdditionalOptionsHandler
- Parameters:
options
- the options (name <->value relation)
-
getAdditionalOptions
public AdditionalOptions getAdditionalOptions()
Returns the value associated with the (additional) option.- Specified by:
getAdditionalOptions
in interfaceAdditionalOptionsHandler
- Returns:
- the options (name <->value relation)
-
doGenerateRows
protected abstract List[] doGenerateRows(BufferedImageContainer img)
Performs the actual feature genration.- Parameters:
img
- the image to process- Returns:
- the generated features
-
generateRows
public List<Object>[] generateRows(BufferedImageContainer img)
Performs the actual feature genration.- Specified by:
generateRows
in classAbstractImageFeatureGenerator<BufferedImageContainer>
- Parameters:
img
- the image to process- Returns:
- the generated features
-
-