Class Blur

  • All Implemented Interfaces:
    CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, ImageTransformer<OpenCVImageContainer>, FlowContextHandler, Serializable, Comparable

    public class Blur
    extends AbstractOpenCVTransformer
    Blurs the image using the normalized box filter.
    For more information see:
    https://docs.opencv.org/4.6.0/d4/d86/group__imgproc__filter.html#ga8c45db9afe636703801b0b2e440fce37

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -kernel-width <int> (property: kernelWidth)
        The width to use for the kernel (positive and odd integer).
        default: 3
        minimum: 1
     
    -kernel-height <int> (property: kernelHeight)
        The height to use for the kernel (positive and odd integer).
        default: 3
        minimum: 1
     
    -anchor-x <int> (property: anchorX)
        The X of the anchor use -1 for the center.
        default: -1
     
    -anchor-y <int> (property: anchorY)
        The Y of the anchor, use -1 for the center.
        default: -1
     
    -border-type <BORDER_CONSTANT|BORDER_REPLICATE|BORDER_REFLECT|BORDER_WRAP|BORDER_REFLECT_101|BORDER_TRANSPARENT|BORDER_REFLECT101|BORDER_DEFAULT|BORDER_ISOLATED> (property: borderType)
        The type of border to use.
        default: BORDER_DEFAULT
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_KernelWidth

        protected int m_KernelWidth
        the kernel width.
      • m_KernelHeight

        protected int m_KernelHeight
        the kernel height.
      • m_AnchorX

        protected int m_AnchorX
        the X of the anchor.
      • m_AnchorY

        protected int m_AnchorY
        the Y of the anchor.
      • m_BorderType

        protected BorderType m_BorderType
        the border type.
    • Constructor Detail

      • Blur

        public Blur()
    • Method Detail

      • setKernelWidth

        public void setKernelWidth​(int value)
        Sets the kernel width.
        Parameters:
        value - the width
      • getKernelWidth

        public int getKernelWidth()
        Returns the kernel width.
        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 kernel height.
        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
      • setAnchorX

        public void setAnchorX​(int value)
        Sets the X of the anchor.
        Parameters:
        value - the X
      • getAnchorX

        public int getAnchorX()
        Returns the X of the anchor.
        Returns:
        the X
      • anchorXTipText

        public String anchorXTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setAnchorY

        public void setAnchorY​(int value)
        Sets the Y of the anchor.
        Parameters:
        value - the Y
      • getAnchorY

        public int getAnchorY()
        Returns the Y of the anchor.
        Returns:
        the Y
      • anchorYTipText

        public String anchorYTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setBorderType

        public void setBorderType​(BorderType value)
        Sets the type of border to use.
        Parameters:
        value - the type
      • getBorderType

        public BorderType getBorderType()
        Returns the type of border to use.
        Returns:
        the type
      • borderTypeTipText

        public String borderTypeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui