Class EdgeDetectorProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Convolution
- Assembly
- SixLabors.ImageSharp.dll
Defines edge detection using a single 2D gradient operator.
public sealed class EdgeDetectorProcessor : IImageProcessor
- Inheritance
-
EdgeDetectorProcessor
- Implements
- Inherited Members
Constructors
EdgeDetectorProcessor(EdgeDetectorKernel, bool)
Initializes a new instance of the EdgeDetectorProcessor class.
public EdgeDetectorProcessor(EdgeDetectorKernel kernel, bool grayscale)
Parameters
kernelEdgeDetectorKernelThe edge detector kernel.
grayscaleboolWhether 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 EdgeDetectorKernel 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
configurationConfigurationsourceImage<TPixel>sourceRectangleRectangle
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixel