Catalano.Imaging.Concurrent.Filters
Class Dilatation
- java.lang.Object
-
- Catalano.Imaging.Concurrent.Filters.Dilatation
-
- All Implemented Interfaces:
- IApplyInPlace
public class Dilatation extends java.lang.Object implements IApplyInPlace
Dilatation operator from Mathematical Morphology. The filter assigns maximum 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 allows to grow separate objects or join objects. The filter accepts 8, 24 bpp images for processing.
-
-
Constructor Summary
Constructors Constructor and Description Dilatation()Initialize a new instance of the Dilatation class.Dilatation(int radius)Initialize a new instance of the Dilatation class.Dilatation(int[][] kernel)Initialize a new instance of the Dilatation 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
-
Dilatation
public Dilatation()
Initialize a new instance of the Dilatation class.
-
Dilatation
public Dilatation(int radius)
Initialize a new instance of the Dilatation class.- Parameters:
radius- Radius.
-
Dilatation
public Dilatation(int[][] kernel)
Initialize a new instance of the Dilatation 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