Catalano.Imaging.Filters
Class ScharrCompassEdgeDetector
- java.lang.Object
-
- Catalano.Imaging.Filters.ScharrCompassEdgeDetector
-
- All Implemented Interfaces:
- IApplyInPlace
public class ScharrCompassEdgeDetector extends java.lang.Object implements IApplyInPlace
Scharr Compass Edge Detector. The operator takes a single kernel mask and rotates it in 45 degree increments through all 8 compass directions: N, NW, W, SW, S, SE, E, and NE. The edge magnitude of the Scharr operator is calculated as the maximum magnitude across all directions. The edge magnitude is found by convolving each mask with the image and selecting the largest value at each pxel location. The edge direction at each point is defined by the direction of the edge mask that provides the maximum magnitude.
-
-
Constructor Summary
Constructors Constructor and Description ScharrCompassEdgeDetector()Initialize a new instance of the ScharrCompassEdgeDetector 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
-
ScharrCompassEdgeDetector
public ScharrCompassEdgeDetector()
Initialize a new instance of the ScharrCompassEdgeDetector class.
-
-
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