Class EdgeDetectorCompassProcessor
Defines edge detection using eight gradient operators.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class EdgeDetectorCompassProcessor : IImageProcessor
Constructors
| Improve this Doc View SourceEdgeDetectorCompassProcessor(EdgeDetectorCompassKernel, Boolean)
Initializes a new instance of the EdgeDetectorCompassProcessor class.
Declaration
public EdgeDetectorCompassProcessor(EdgeDetectorCompassKernel kernel, bool grayscale)
Parameters
| Type | Name | Description |
|---|---|---|
| EdgeDetectorCompassKernel | kernel | The edge detector kernel. |
| Boolean | grayscale | Whether to convert the image to grayscale before performing edge detection. |
Properties
| Improve this Doc View SourceGrayscale
Gets a value indicating whether to convert the image to grayscale before performing edge detection.
Declaration
public bool Grayscale { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Kernel
Gets the edge detector kernel.
Declaration
public EdgeDetectorCompassKernel Kernel { get; }
Property Value
| Type | Description |
|---|---|
| EdgeDetectorCompassKernel |
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
where TPixel : struct, IPixel<TPixel>
Parameters
| Type | Name | Description |
|---|---|---|
| Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
| Image<TPixel> | source | The source image. Cannot be null. |
| Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
| Type | Description |
|---|---|
| IImageProcessor<TPixel> |
Type Parameters
| Name | Description |
|---|---|
| TPixel | The pixel type. |