Class EdgeDetectorCompassProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Convolution
- Assembly
- SixLabors.ImageSharp.dll
Defines edge detection using eight gradient operators.
public sealed class EdgeDetectorCompassProcessor : IImageProcessor
- Inheritance
-
EdgeDetectorCompassProcessor
- Implements
- Inherited Members
Constructors
EdgeDetectorCompassProcessor(EdgeDetectorCompassKernel, bool)
Initializes a new instance of the EdgeDetectorCompassProcessor class.
public EdgeDetectorCompassProcessor(EdgeDetectorCompassKernel kernel, bool grayscale)
Parameters
kernel
EdgeDetectorCompassKernelThe edge detector kernel.
grayscale
boolWhether to convert the image to grayscale before performing edge detection.
Properties
Grayscale
Gets a value indicating whether to convert the image to grayscale before performing edge detection.
public bool Grayscale { get; }
Property Value
Kernel
Gets the edge detector kernel.
public EdgeDetectorCompassKernel Kernel { get; }
Property Value
Methods
CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configuration
Configurationsource
Image<TPixel>sourceRectangle
Rectangle
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixel