Catalano.Imaging.Filters
Class SobelEdgeDetector
- java.lang.Object
-
- Catalano.Imaging.Filters.SobelEdgeDetector
-
- All Implemented Interfaces:
- IApplyInPlace
public class SobelEdgeDetector extends java.lang.Object implements IApplyInPlace
Sobel edge detector.The filter searches for objects' edges by applying Sobel operator. Each pixel of the result image is calculated as approximated absolute gradient magnitude for corresponding pixel of the source image: |G| = |Gx| + |Gy] , where Gx and Gy are calculate utilizing Sobel convolution kernels. Using the above kernel the approximated magnitude for pixel x is calculate using the next equation: |G| = |P1 + 2P2 + P3 - P7 - 2P6 - P5| + |P3 + 2P4 + P5 - P1 - 2P8 - P7|
-
-
Constructor Summary
Constructors Constructor and Description SobelEdgeDetector()Initializes a new instance of the SobelEdgeDetector class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.booleanisScaleIntensity()Is scale intensity.voidsetScaleIntensity(boolean scaleIntensity)Set scale intensity.
-
-
-
Constructor Detail
-
SobelEdgeDetector
public SobelEdgeDetector()
Initializes a new instance of the SobelEdgeDetector class.
-
-
Method Detail
-
isScaleIntensity
public boolean isScaleIntensity()
Is scale intensity.Check if edges' pixels intensities of the result image should be scaled in the range of the lowest and the highest possible intensity values. - Returns:
- Scale intensity value.
-
setScaleIntensity
public void setScaleIntensity(boolean scaleIntensity)
Set scale intensity.Check if edges' pixels intensities of the result image should be scaled in the range of the lowest and the highest possible intensity values. - Parameters:
scaleIntensity- Scale intensity value.
-
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