Struct EdgeDetectorKernel
Represents an edge detection convolution kernel consisting of a single 2D gradient operator.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct EdgeDetectorKernel : IEquatable<EdgeDetectorKernel>
Constructors
EdgeDetectorKernel(DenseMatrix<float>)
Initializes a new instance of the EdgeDetectorKernel struct.
Declaration
public EdgeDetectorKernel(DenseMatrix<float> kernelXY)
Parameters
| Type | Name | Description |
|---|---|---|
| DenseMatrix<float> | kernelXY | The 2D gradient operator. |
Fields
Laplacian3x3
An edge detection kernel containing a 3x3 Laplacian operator. http://en.wikipedia.org/wiki/Discrete_Laplace_operator
Declaration
public static readonly EdgeDetectorKernel Laplacian3x3
Field Value
| Type | Description |
|---|---|
| EdgeDetectorKernel |
Laplacian5x5
An edge detection kernel containing a 5x5 Laplacian operator. http://en.wikipedia.org/wiki/Discrete_Laplace_operator
Declaration
public static readonly EdgeDetectorKernel Laplacian5x5
Field Value
| Type | Description |
|---|---|
| EdgeDetectorKernel |
LaplacianOfGaussian
An edge detection kernel containing a Laplacian of Gaussian operator. http://fourier.eng.hmc.edu/e161/lectures/gradient/node8.html.
Declaration
public static readonly EdgeDetectorKernel LaplacianOfGaussian
Field Value
| Type | Description |
|---|---|
| EdgeDetectorKernel |
Properties
KernelXY
Gets the 2D gradient operator.
Declaration
public DenseMatrix<float> KernelXY { get; }
Property Value
| Type | Description |
|---|---|
| DenseMatrix<float> |
Methods
Equals(EdgeDetectorKernel)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(EdgeDetectorKernel other)
Parameters
| Type | Name | Description |
|---|---|---|
| EdgeDetectorKernel | 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
GetHashCode()
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
operator ==(EdgeDetectorKernel, EdgeDetectorKernel)
Checks whether two EdgeDetectorKernel structures are equal.
Declaration
public static bool operator ==(EdgeDetectorKernel left, EdgeDetectorKernel right)
Parameters
| Type | Name | Description |
|---|---|---|
| EdgeDetectorKernel | left | The left hand EdgeDetectorKernel operand. |
| EdgeDetectorKernel | right | The right hand EdgeDetectorKernel operand. |
Returns
| Type | Description |
|---|---|
| bool | True if the |
operator !=(EdgeDetectorKernel, EdgeDetectorKernel)
Checks whether two EdgeDetectorKernel structures are equal.
Declaration
public static bool operator !=(EdgeDetectorKernel left, EdgeDetectorKernel right)
Parameters
| Type | Name | Description |
|---|---|---|
| EdgeDetectorKernel | left | The left hand EdgeDetectorKernel operand. |
| EdgeDetectorKernel | right | The right hand EdgeDetectorKernel operand. |
Returns
| Type | Description |
|---|---|
| bool | True if the |