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
kernelXYDenseMatrix<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)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EdgeDetectorKernel other)
Parameters
otherEdgeDetectorKernelAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(EdgeDetectorKernel, EdgeDetectorKernel)
Checks whether two EdgeDetectorKernel structures are equal.
public static bool operator ==(EdgeDetectorKernel left, EdgeDetectorKernel right)
Parameters
leftEdgeDetectorKernelThe left hand EdgeDetectorKernel operand.
rightEdgeDetectorKernelThe right hand EdgeDetectorKernel operand.
Returns
- bool
True if the
leftparameter is equal to therightparameter; otherwise, false.
operator !=(EdgeDetectorKernel, EdgeDetectorKernel)
Checks whether two EdgeDetectorKernel structures are equal.
public static bool operator !=(EdgeDetectorKernel left, EdgeDetectorKernel right)
Parameters
leftEdgeDetectorKernelThe left hand EdgeDetectorKernel operand.
rightEdgeDetectorKernelThe right hand EdgeDetectorKernel operand.
Returns
- bool
True if the
leftparameter is not equal to therightparameter; otherwise, false.