Package adams.data.jai.transformer
Class Erode
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,ImageTransformer<BufferedImageContainer>,FlowContextHandler,Serializable,Comparable
public class Erode 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_Kernelthe kernel (blank separated list of floats).protected intm_KernelHeightthe kernel height.protected intm_KernelWidththe 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 Erode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected BufferedImageContainer[]doTransform(BufferedImageContainer img)Performs no transformation at all, just returns the input.StringgetKernel()Returns the kernel (blank-separated list of floats, row-wise).intgetKernelHeight()Returns the height of the kernel.intgetKernelWidth()Returns the width of the kernel.StringglobalInfo()Returns a string describing the object.StringkernelHeightTipText()Returns the tip text for this property.StringkernelTipText()Returns the tip text for this property.StringkernelWidthTipText()Returns the tip text for this property.voidsetKernel(String value)Sets the kernel (blank-separated list of floats, row-wise).voidsetKernelHeight(int value)Sets the kernel height.voidsetKernelWidth(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:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin 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:
doTransformin classAbstractImageTransformer<BufferedImageContainer>- Parameters:
img- the image to process (can be modified, since it is a copy)- Returns:
- the copy of the image
-
-