Catalano.Imaging.Concurrent.Filters
Class Erosion
- java.lang.Object
-
- Catalano.Imaging.Concurrent.Filters.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 voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.
-
-
-
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:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG