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
| Edit this page View SourceEdgeDetector2DKernel(DenseMatrix<float>, DenseMatrix<float>)
Initializes a new instance of the EdgeDetector2DKernel struct.
Declaration
public EdgeDetector2DKernel(DenseMatrix<float> kernelX, DenseMatrix<float> kernelY)
Parameters
Type | Name | Description |
---|---|---|
DenseMatrix<float> | kernelX | The horizontal gradient operator. |
DenseMatrix<float> | kernelY | The vertical gradient operator. |
Fields
| Edit this page View SourceKayyaliKernel
An edge detection kernel containing two Kayyali operators.
Declaration
public static readonly 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 readonly 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 readonly EdgeDetector2DKernel RobertsCrossKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
ScharrKernel
An edge detection kernel containing two Scharr operators.
Declaration
public static readonly 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 readonly EdgeDetector2DKernel SobelKernel
Field Value
Type | Description |
---|---|
EdgeDetector2DKernel |
Properties
| Edit this page View SourceKernelX
Gets the horizontal gradient operator.
Declaration
public DenseMatrix<float> KernelX { get; }
Property Value
Type | Description |
---|---|
DenseMatrix<float> |
KernelY
Gets the vertical gradient operator.
Declaration
public DenseMatrix<float> KernelY { get; }
Property Value
Type | Description |
---|---|
DenseMatrix<float> |
Methods
| Edit this page View SourceEquals(EdgeDetector2DKernel)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(EdgeDetector2DKernel other)
Parameters
Type | Name | Description |
---|---|---|
EdgeDetector2DKernel | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(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 |
---|---|
bool | True if the |
operator !=(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 |
---|---|
bool | True if the |