public class DifferenceEdgeDetector extends java.lang.Object implements IApplyInPlace
The filter finds objects' edges by calculating maximum difference between pixels in 4 directions around the processing pixel.
Suppose 3x3 square element of the source image (x - is currently processed pixel):
P1 P2 P3
P8 x P4
P7 P6 P5
The corresponding pixel of the result image equals to:
max( |P1-P5|, |P2-P6|, |P3-P7|, |P4-P8| )
| Constructor and Description |
|---|
DifferenceEdgeDetector()
Initializes a new instance of the DifferenceEdgeDetector class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
public DifferenceEdgeDetector()
public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.