Catalano.Imaging.Concurrent.Filters
Class MorphologicGradientImage
- java.lang.Object
-
- Catalano.Imaging.Concurrent.Filters.MorphologicGradientImage
-
- All Implemented Interfaces:
- IApplyInPlace
public class MorphologicGradientImage extends java.lang.Object implements IApplyInPlace
Morphologic Gradient Image.In mathematical morphology and digital image processing, a morphological gradient is the difference between the dilation and the erosion of a given image. It is an image where each pixel value (typically non-negative) indicates the contrast intensity in the close neighborhood of that pixel. It is useful for edge detection and segmentation applications. References: http://en.wikipedia.org/wiki/Morphological_gradient
-
-
Constructor Summary
Constructors Constructor and Description MorphologicGradientImage()Initialize a new instance of the MorphologicGradientImage class.MorphologicGradientImage(int radius)Initialize a new instance of the MorphologicGradientImage class.MorphologicGradientImage(int[][] kernel)Initialize a new instance of the MorphologicGradientImage class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.int[][]getKernel()Get Kernel of morphologic operators.intgetRadius()Get Radius of morphologic operators.voidsetKernel(int[][] kernel)Set Kernel of morphologic operators.voidsetRadius(int radius)Set Radius of morphologic operators.
-
-
-
Constructor Detail
-
MorphologicGradientImage
public MorphologicGradientImage()
Initialize a new instance of the MorphologicGradientImage class.
-
MorphologicGradientImage
public MorphologicGradientImage(int radius)
Initialize a new instance of the MorphologicGradientImage class.- Parameters:
radius- Radius.
-
MorphologicGradientImage
public MorphologicGradientImage(int[][] kernel)
Initialize a new instance of the MorphologicGradientImage class.- Parameters:
kernel- Kernel.
-
-
Method Detail
-
getRadius
public int getRadius()
Get Radius of morphologic operators.- Returns:
- Radius.
-
setRadius
public void setRadius(int radius)
Set Radius of morphologic operators.- Parameters:
radius- Radius.
-
getKernel
public int[][] getKernel()
Get Kernel of morphologic operators.- Returns:
- Kernel.
-
setKernel
public void setKernel(int[][] kernel)
Set Kernel of morphologic operators.- Parameters:
kernel- Kernel.
-
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