Table of Contents

Struct EdgeDetectorCompassKernel

Namespace
SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly
SixLabors.ImageSharp.dll

Represents an edge detection convolution kernel consisting of eight gradient operators.

public readonly struct EdgeDetectorCompassKernel : IEquatable<EdgeDetectorCompassKernel>
Implements
Inherited Members

Constructors

EdgeDetectorCompassKernel(DenseMatrix<float>, DenseMatrix<float>, DenseMatrix<float>, DenseMatrix<float>, DenseMatrix<float>, DenseMatrix<float>, DenseMatrix<float>, DenseMatrix<float>)

Initializes a new instance of the EdgeDetectorCompassKernel struct.

public EdgeDetectorCompassKernel(DenseMatrix<float> north, DenseMatrix<float> northWest, DenseMatrix<float> west, DenseMatrix<float> southWest, DenseMatrix<float> south, DenseMatrix<float> southEast, DenseMatrix<float> east, DenseMatrix<float> northEast)

Parameters

north DenseMatrix<float>

The north gradient operator.

northWest DenseMatrix<float>

The north-west gradient operator.

west DenseMatrix<float>

The west gradient operator.

southWest DenseMatrix<float>

The south-west gradient operator.

south DenseMatrix<float>

The south gradient operator.

southEast DenseMatrix<float>

The south-east gradient operator.

east DenseMatrix<float>

The east gradient operator.

northEast DenseMatrix<float>

The north-east gradient operator.

Fields

Kirsch

An edge detection kenel comprised of Kirsch gradient operators. http://en.wikipedia.org/wiki/Kirsch_operator.

public static readonly EdgeDetectorCompassKernel Kirsch

Field Value

EdgeDetectorCompassKernel

Robinson

An edge detection kenel comprised of Robinson gradient operators. http://www.tutorialspoint.com/dip/Robinson_Compass_Mask.htm

public static readonly EdgeDetectorCompassKernel Robinson

Field Value

EdgeDetectorCompassKernel

Properties

East

Gets the East gradient operator.

public DenseMatrix<float> East { get; }

Property Value

DenseMatrix<float>

North

Gets the North gradient operator.

public DenseMatrix<float> North { get; }

Property Value

DenseMatrix<float>

NorthEast

Gets the NorthEast gradient operator.

public DenseMatrix<float> NorthEast { get; }

Property Value

DenseMatrix<float>

NorthWest

Gets the NorthWest gradient operator.

public DenseMatrix<float> NorthWest { get; }

Property Value

DenseMatrix<float>

South

Gets the South gradient operator.

public DenseMatrix<float> South { get; }

Property Value

DenseMatrix<float>

SouthEast

Gets the SouthEast gradient operator.

public DenseMatrix<float> SouthEast { get; }

Property Value

DenseMatrix<float>

SouthWest

Gets the SouthWest gradient operator.

public DenseMatrix<float> SouthWest { get; }

Property Value

DenseMatrix<float>

West

Gets the West gradient operator.

public DenseMatrix<float> West { get; }

Property Value

DenseMatrix<float>

Methods

Equals(EdgeDetectorCompassKernel)

public bool Equals(EdgeDetectorCompassKernel other)

Parameters

other EdgeDetectorCompassKernel

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)

Checks whether two EdgeDetectorCompassKernel structures are equal.

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

Parameters

left EdgeDetectorCompassKernel

The left hand EdgeDetectorCompassKernel operand.

right EdgeDetectorCompassKernel

The right hand EdgeDetectorCompassKernel operand.

Returns

bool

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

operator !=(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)

Checks whether two EdgeDetectorCompassKernel structures are equal.

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

Parameters

left EdgeDetectorCompassKernel

The left hand EdgeDetectorCompassKernel operand.

right EdgeDetectorCompassKernel

The right hand EdgeDetectorCompassKernel operand.

Returns

bool

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