Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 126.96.36.199 (188.8.131.52)
public class HomogenityEdgeDetector : BaseUsingCopyPartialFilter
The filter finds objects' edges by calculating maximum difference of processing pixel with neighboring pixels in 8 direction.
Suppose 3x3 square element of the source image (x - is currently processed
P1 P2 P3
P8 x P4
P7 P6 P5
max( |x-P1|, |x-P2|, |x-P3|, |x-P4|,
|x-P5|, |x-P6|, |x-P7|, |x-P8| )
The filter accepts 8 bpp grayscale images for processing.
// create filter HomogenityEdgeDetector filter = new HomogenityEdgeDetector( ); // apply the filter filter.ApplyInPlace( image );