Table of Contents

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

EdgeDetectorKernel

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

EdgeDetectorKernel

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

EdgeDetectorKernel

Properties

KernelXY

Gets the 2D gradient operator.

public DenseMatrix<float> KernelXY { get; }

Property Value

DenseMatrix<float>

Methods

Equals(EdgeDetectorKernel)

public bool Equals(EdgeDetectorKernel other)

Parameters

other EdgeDetectorKernel

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(EdgeDetectorKernel, EdgeDetectorKernel)

Checks whether two EdgeDetectorKernel structures are equal.

public static bool operator ==(EdgeDetectorKernel left, EdgeDetectorKernel right)

Parameters

left EdgeDetectorKernel

The left hand EdgeDetectorKernel operand.

right EdgeDetectorKernel

The right hand EdgeDetectorKernel operand.

Returns

bool

True if the left parameter is equal to the right parameter; otherwise, false.

operator !=(EdgeDetectorKernel, EdgeDetectorKernel)

Checks whether two EdgeDetectorKernel structures are equal.

public static bool operator !=(EdgeDetectorKernel left, EdgeDetectorKernel right)

Parameters

left EdgeDetectorKernel

The left hand EdgeDetectorKernel operand.

right EdgeDetectorKernel

The right hand EdgeDetectorKernel operand.

Returns

bool

True if the left parameter is not equal to the right parameter; otherwise, false.