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