Package adams.data.jai.transformer
Class Dilate
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,ImageTransformer<BufferedImageContainer>
,FlowContextHandler
,Serializable
,Comparable
public class Dilate extends AbstractJAITransformer
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected float[]
m_Kernel
the kernel (blank separated list of floats).protected int
m_KernelHeight
the kernel height.protected int
m_KernelWidth
the kernel width.-
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 Dilate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected BufferedImageContainer[]
doTransform(BufferedImageContainer img)
Performs no transformation at all, just returns the input.String
getKernel()
Returns the kernel (blank-separated list of floats, row-wise).int
getKernelHeight()
Returns the height of the kernel.int
getKernelWidth()
Returns the width of the kernel.String
globalInfo()
Returns a string describing the object.String
kernelHeightTipText()
Returns the tip text for this property.String
kernelTipText()
Returns the tip text for this property.String
kernelWidthTipText()
Returns the tip text for this property.void
setKernel(String value)
Sets the kernel (blank-separated list of floats, row-wise).void
setKernelHeight(int value)
Sets the kernel height.void
setKernelWidth(int value)
Sets the kernel width.-
Methods inherited from class adams.data.image.transformer.AbstractBufferedImageTransformer
forCommandLine, forName, getTransformations
-
Methods inherited from class adams.data.image.AbstractImageTransformer
checkImage, cleanUp, compareTo, destroy, equals, getFlowContext, getQuickInfo, initialize, setFlowContext, shallowCopy, shallowCopy, transform
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, 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, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setKernel
public void setKernel(String value)
Sets the kernel (blank-separated list of floats, row-wise).- Parameters:
value
- the kernel
-
getKernel
public String getKernel()
Returns the kernel (blank-separated list of floats, row-wise).- Returns:
- the kernel
-
kernelTipText
public String kernelTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setKernelWidth
public void setKernelWidth(int value)
Sets the kernel width.- Parameters:
value
- the width
-
getKernelWidth
public int getKernelWidth()
Returns the width of the kernel.- Returns:
- the width
-
kernelWidthTipText
public String kernelWidthTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setKernelHeight
public void setKernelHeight(int value)
Sets the kernel height.- Parameters:
value
- the height
-
getKernelHeight
public int getKernelHeight()
Returns the height of the kernel.- Returns:
- the height
-
kernelHeightTipText
public String kernelHeightTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
doTransform
protected BufferedImageContainer[] doTransform(BufferedImageContainer img)
Performs no transformation at all, just returns the input.- Specified by:
doTransform
in classAbstractImageTransformer<BufferedImageContainer>
- Parameters:
img
- the image to process (can be modified, since it is a copy)- Returns:
- the copy of the image
-
-