Package adams.data.opencv.transformer
Class AbstractOpenCVTransformer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.image.AbstractImageTransformer<OpenCVImageContainer>
-
- adams.data.opencv.transformer.AbstractOpenCVTransformer
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,ImageTransformer<OpenCVImageContainer>
,FlowContextHandler
,Serializable
,Comparable
- Direct Known Subclasses:
AbstractScript
,AbstractScriptedTransformer
,Blur
,ConvertType
,GaussianBlur
,MultiTransformer
,PassThrough
,Resize
,SplitChannels
,Threshold
public abstract class AbstractOpenCVTransformer extends AbstractImageTransformer<OpenCVImageContainer>
Abstract base class for OpenCV transformations. Derived classes only have to override thedoTransform(BufferedImage)
method. Thereset()
method can be used to reset an algorithms internal state, e.g., after setting options.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
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 AbstractOpenCVTransformer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractOpenCVTransformer
forCommandLine(String cmdline)
Instantiates the transformation from the given commandline (i.e., classname and optional options).static AbstractOpenCVTransformer
forName(String classname, String[] options)
Instantiates the transformation with the given options.static String[]
getTransformations()
Returns a list with classnames of transformations.-
Methods inherited from class adams.data.image.AbstractImageTransformer
checkImage, cleanUp, compareTo, destroy, doTransform, equals, getFlowContext, getQuickInfo, initialize, 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
-
-
-
-
Method Detail
-
getTransformations
public static String[] getTransformations()
Returns a list with classnames of transformations.- Returns:
- the transformation classnames
-
forName
public static AbstractOpenCVTransformer forName(String classname, String[] options)
Instantiates the transformation with the given options.- Parameters:
classname
- the classname of the transformation to instantiateoptions
- the options for the transformation- Returns:
- the instantiated transformation or null if an error occurred
-
forCommandLine
public static AbstractOpenCVTransformer forCommandLine(String cmdline)
Instantiates the transformation from the given commandline (i.e., classname and optional options).- Parameters:
cmdline
- the classname (and optional options) of the transformation to instantiate- Returns:
- the instantiated transformation or null if an error occurred
-
-