Catalano.Imaging.Filters
Class BinaryErosion
- java.lang.Object
-
- Catalano.Imaging.Filters.BinaryErosion
-
- All Implemented Interfaces:
- IApplyInPlace
public class BinaryErosion extends java.lang.Object implements IApplyInPlace
Binary 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.- Supported types: Grayscale.
- Coordinate System: Matrix.
-
-
Constructor Summary
Constructors Constructor and Description BinaryErosion()Initialize a new instance of the Binary Erosion class with radius = 1.BinaryErosion(int radius)Initialize a new instance of the Binary Erosion class with defined.BinaryErosion(int[][] se)Initialize a new instance of the Binary Erosion class with structuring element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.
-
-
-
Constructor Detail
-
BinaryErosion
public BinaryErosion()
Initialize a new instance of the Binary Erosion class with radius = 1.
-
BinaryErosion
public BinaryErosion(int radius)
Initialize a new instance of the Binary Erosion class with defined.- Parameters:
radius- Radius
-
BinaryErosion
public BinaryErosion(int[][] se)
Initialize a new instance of the Binary Erosion class with structuring element.- Parameters:
se- Structuring element.
-
-
Method Detail
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- FastBitmap
-
-
DataMelt 3.0 © DataMelt by jWork.ORG