Struct EdgeDetector2DKernel
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Convolution
- Assembly
- SixLabors.ImageSharp.dll
Represents an edge detection convolution kernel consisting of two 1D gradient operators.
public readonly struct EdgeDetector2DKernel : IEquatable<EdgeDetector2DKernel>
- Implements
- Inherited Members
Constructors
EdgeDetector2DKernel(DenseMatrix<float>, DenseMatrix<float>)
Initializes a new instance of the EdgeDetector2DKernel struct.
public EdgeDetector2DKernel(DenseMatrix<float> kernelX, DenseMatrix<float> kernelY)
Parameters
kernelX
DenseMatrix<float>The horizontal gradient operator.
kernelY
DenseMatrix<float>The vertical gradient operator.
Fields
KayyaliKernel
An edge detection kernel containing two Kayyali operators.
public static readonly EdgeDetector2DKernel KayyaliKernel
Field Value
PrewittKernel
An edge detection kernel containing two Prewitt operators. https://en.wikipedia.org/wiki/Prewitt_operator.
public static readonly EdgeDetector2DKernel PrewittKernel
Field Value
RobertsCrossKernel
An edge detection kernel containing two Roberts-Cross operators. https://en.wikipedia.org/wiki/Roberts_cross.
public static readonly EdgeDetector2DKernel RobertsCrossKernel
Field Value
ScharrKernel
An edge detection kernel containing two Scharr operators.
public static readonly EdgeDetector2DKernel ScharrKernel
Field Value
SobelKernel
An edge detection kernel containing two Sobel operators. https://en.wikipedia.org/wiki/Sobel_operator.
public static readonly EdgeDetector2DKernel SobelKernel
Field Value
Properties
KernelX
Gets the horizontal gradient operator.
public DenseMatrix<float> KernelX { get; }
Property Value
KernelY
Gets the vertical gradient operator.
public DenseMatrix<float> KernelY { get; }
Property Value
Methods
Equals(EdgeDetector2DKernel)
public bool Equals(EdgeDetector2DKernel other)
Parameters
other
EdgeDetector2DKernel
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(EdgeDetector2DKernel, EdgeDetector2DKernel)
Checks whether two EdgeDetector2DKernel structures are equal.
public static bool operator ==(EdgeDetector2DKernel left, EdgeDetector2DKernel right)
Parameters
left
EdgeDetector2DKernelThe left hand EdgeDetector2DKernel operand.
right
EdgeDetector2DKernelThe right hand EdgeDetector2DKernel operand.
Returns
- bool
True if the
left
parameter is equal to theright
parameter; otherwise, false.
operator !=(EdgeDetector2DKernel, EdgeDetector2DKernel)
Checks whether two EdgeDetector2DKernel structures are equal.
public static bool operator !=(EdgeDetector2DKernel left, EdgeDetector2DKernel right)
Parameters
left
EdgeDetector2DKernelThe left hand EdgeDetector2DKernel operand.
right
EdgeDetector2DKernelThe right hand EdgeDetector2DKernel operand.
Returns
- bool
True if the
left
parameter is not equal to theright
parameter; otherwise, false.