Package adams.data.image.transformer
Class AbstractBufferedImageTransformer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.image.AbstractImageTransformer<BufferedImageContainer>
-
- adams.data.image.transformer.AbstractBufferedImageTransformer
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,ImageTransformer<BufferedImageContainer>
,FlowContextHandler
,Serializable
,Comparable
- Direct Known Subclasses:
AbstractJAITransformer
,AbstractScript
,AbstractScriptedTransformer
,Binary
,BinaryMask
,BlueChannelColorizer
,ChangeCanvasSize
,Cropping
,DownSample
,FixObjects
,GaussianBlur
,GrayOrIndexedColorizer
,Grayscale
,ImageFilter
,ImageType
,LaplaceOfGaussian
,LaplaceOperator
,LocalMedianFilter
,MaxRGB
,MinRGB
,MinRGBOld
,MultiTransformer
,ObjectAnnotationsMask
,PassThrough
,ReplaceColors
,ReplacePredominantColor
,Resize
,SplitChannels
,SplitChannelsHSV
,SplitChannelsYIQ
,SplitChannelsYUV
,SubImages
,SuppliedImageMask
,ThresholdReplacement
,TrimapColorizer
,WhiteBalance
,XScreenMask
public abstract class AbstractBufferedImageTransformer extends AbstractImageTransformer<BufferedImageContainer>
Abstract base class for BufferedImage 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.- Version:
- $Revision: 7706 $
- 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 AbstractBufferedImageTransformer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractBufferedImageTransformer
forCommandLine(String cmdline)
Instantiates the transformation from the given commandline (i.e., classname and optional options).static AbstractBufferedImageTransformer
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 AbstractBufferedImageTransformer 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 AbstractBufferedImageTransformer 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
-
-