Struct EdgeDetector2DKernel
Represents an edge detection convolution kernel consisting of two 1D gradient operators.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct EdgeDetector2DKernel : IEquatable<EdgeDetector2DKernel>
Constructors
| Improve this Doc View SourceEdgeDetector2DKernel(DenseMatrix<Single>, DenseMatrix<Single>)
Initializes a new instance of the EdgeDetector2DKernel struct.
Declaration
public EdgeDetector2DKernel(DenseMatrix<float> kernelX, DenseMatrix<float> kernelY)
Parameters
Type | Name | Description |
---|---|---|
DenseMatrix<Single> | kernelX | The horizontal gradient operator. |
DenseMatrix<Single> | kernelY | The vertical gradient operator. |
Fields
| Improve this Doc View SourceKayyaliKernel
An edge detection kernel containing two Kayyali operators.
Declaration
public static EdgeDetector2DKernel KayyaliKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
PrewittKernel
An edge detection kernel containing two Prewitt operators. https://en.wikipedia.org/wiki/Prewitt_operator.
Declaration
public static EdgeDetector2DKernel PrewittKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
RobertsCrossKernel
An edge detection kernel containing two Roberts-Cross operators. https://en.wikipedia.org/wiki/Roberts_cross.
Declaration
public static EdgeDetector2DKernel RobertsCrossKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
ScharrKernel
An edge detection kernel containing two Scharr operators.
Declaration
public static EdgeDetector2DKernel ScharrKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
SobelKernel
An edge detection kernel containing two Sobel operators. https://en.wikipedia.org/wiki/Sobel_operator.
Declaration
public static EdgeDetector2DKernel SobelKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
Properties
| Improve this Doc View SourceKernelX
Gets the horizontal gradient operator.
Declaration
public readonly DenseMatrix<float> KernelX { get; }
Property Value
Type | Description |
---|---|
DenseMatrix<Single> |
KernelY
Gets the vertical gradient operator.
Declaration
public readonly DenseMatrix<float> KernelY { get; }
Property Value
Type | Description |
---|---|
DenseMatrix<Single> |
Methods
| Improve this Doc View SourceEquals(EdgeDetector2DKernel)
Declaration
public readonly bool Equals(EdgeDetector2DKernel other)
Parameters
Type | Name | Description |
---|---|---|
EdgeDetector2DKernel | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Operators
| Improve this Doc View SourceEquality(EdgeDetector2DKernel, EdgeDetector2DKernel)
Checks whether two EdgeDetector2DKernel structures are equal.
Declaration
public static bool operator ==(EdgeDetector2DKernel left, EdgeDetector2DKernel right)
Parameters
Type | Name | Description |
---|---|---|
EdgeDetector2DKernel | left | The left hand EdgeDetector2DKernel operand. |
EdgeDetector2DKernel | right | The right hand EdgeDetector2DKernel operand. |
Returns
Type | Description |
---|---|
Boolean | True if the |
Inequality(EdgeDetector2DKernel, EdgeDetector2DKernel)
Checks whether two EdgeDetector2DKernel structures are equal.
Declaration
public static bool operator !=(EdgeDetector2DKernel left, EdgeDetector2DKernel right)
Parameters
Type | Name | Description |
---|---|---|
EdgeDetector2DKernel | left | The left hand EdgeDetector2DKernel operand. |
EdgeDetector2DKernel | right | The right hand EdgeDetector2DKernel operand. |
Returns
Type | Description |
---|---|
Boolean | True if the |