Package adams.data.opencv.transformer
Class AbstractScript
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,ImageTransformer<OpenCVImageContainer>,AdditionalOptionsHandler,FlowContextHandler,Serializable,Comparable
public abstract class AbstractScript extends AbstractOpenCVTransformer implements AdditionalOptionsHandler
Ancestor for OpenCV transformer scripts.
Scripts of scripting languages like Jython or Groovy need to be derived from this class.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AdditionalOptionsm_AdditionalOptionsfor storing the additional options.-
Fields inherited from class adams.data.image.AbstractImageTransformer
m_FlowContext
-
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 OpenCVImageContainer[]doTransform(OpenCVImageContainer img)Performs the actual transforming of the image.AdditionalOptionsgetAdditionalOptions()Returns the value associated with the (additional) option.protected voidinitialize()Initializes the members.abstract OpenCVImageContainer[]performTransform(OpenCVImageContainer img)Performs the actual transforming of the image.voidsetAdditionalOptions(AdditionalOptions options)Sets the additional options.-
Methods inherited from class adams.data.opencv.transformer.AbstractOpenCVTransformer
forCommandLine, forName, getTransformations
-
Methods inherited from class adams.data.image.AbstractImageTransformer
checkImage, cleanUp, compareTo, destroy, equals, getFlowContext, getQuickInfo, setFlowContext, shallowCopy, shallowCopy, transform
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, reset, 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
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_AdditionalOptions
protected AdditionalOptions m_AdditionalOptions
for storing the additional options.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractImageTransformer<OpenCVImageContainer>
-
setAdditionalOptions
public void setAdditionalOptions(AdditionalOptions options)
Sets the additional options.- Specified by:
setAdditionalOptionsin interfaceAdditionalOptionsHandler- Parameters:
options- the options (name <->value relation)
-
getAdditionalOptions
public AdditionalOptions getAdditionalOptions()
Returns the value associated with the (additional) option.- Specified by:
getAdditionalOptionsin interfaceAdditionalOptionsHandler- Returns:
- the options (name <->value relation)
-
performTransform
public abstract OpenCVImageContainer[] performTransform(OpenCVImageContainer img)
Performs the actual transforming of the image.- Parameters:
img- the image to transform (can be modified, since it is a copy)- Returns:
- the generated image(s)
-
doTransform
public OpenCVImageContainer[] doTransform(OpenCVImageContainer img)
Performs the actual transforming of the image.- Specified by:
doTransformin classAbstractImageTransformer<OpenCVImageContainer>- Parameters:
img- the image to transform (can be modified, since it is a copy)- Returns:
- the generated image(s)
-
-