Documentation of 'Catalano.Imaging.Concurrent.Filters.Erosion' Java class
Erosion
Catalano.Imaging.Concurrent.Filters

Class Erosion

  • All Implemented Interfaces:
    IApplyInPlace


    public class Erosion
    extends java.lang.Object
    implements IApplyInPlace
    Erosion operator from Mathematical Morphology. The filter assigns minimum value of surrounding pixels to each pixel of the result image. Surrounding pixels, which should be processed, are specified by structuring element: 1 - to process the neighbor, 0 - to skip it. The filter especially useful for binary image processing, where it removes pixels, which are not surrounded by specified amount of neighbors. It gives ability to remove noisy pixels (stand-alone pixels) or shrink objects. The filter accepts 8, 24 bpp images for processing.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Erosion()
      Initialize a new instance of the Erosion class.
      Erosion(int radius)
      Initialize a new instance of the Erosion class.
      Erosion(int[][] kernel)
      Initialize a new instance of the Erosion class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void applyInPlace(FastBitmap fastBitmap)
      Apply filter to an image.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Erosion

        public Erosion()
        Initialize a new instance of the Erosion class.
      • Erosion

        public Erosion(int radius)
        Initialize a new instance of the Erosion class.
        Parameters:
        radius - Radius.
      • Erosion

        public Erosion(int[][] kernel)
        Initialize a new instance of the Erosion class.
        Parameters:
        kernel - Kernel.
    • Method Detail

      • applyInPlace

        public void applyInPlace(FastBitmap fastBitmap)
        Description copied from interface: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        fastBitmap - Image to be processed.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.