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)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(EdgeDetectorKernel other)

Parameters

other EdgeDetectorKernel

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

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.