Struct EdgeDetectorKernel
Represents an edge detection convolution kernel consisting of a single 2D gradient operator.
Implements
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct EdgeDetectorKernel
Constructors
| Improve this Doc View SourceEdgeDetectorKernel(DenseMatrix<Single>)
Initializes a new instance of the EdgeDetectorKernel struct.
Declaration
public EdgeDetectorKernel(DenseMatrix<float> kernelXY)
Parameters
Type | Name | Description |
---|---|---|
DenseMatrix<Single> | kernelXY | The 2D gradient operator. |
Fields
| Improve this Doc View SourceLaplacian3x3
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
| Improve this Doc View SourceKernelXY
Gets the 2D gradient operator.
Declaration
public readonly DenseMatrix<float> KernelXY { get; }
Property Value
Type | Description |
---|---|
DenseMatrix<Single> |
Methods
| Improve this Doc View SourceEquals(EdgeDetectorKernel)
Declaration
public readonly bool Equals(EdgeDetectorKernel other)
Parameters
Type | Name | Description |
---|---|---|
EdgeDetectorKernel | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Operators
| Improve this Doc View SourceEquality(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 |
---|---|
Boolean | True if the |
Inequality(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 |
---|---|
Boolean | True if the |