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
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
Properties
East
Gets the East gradient operator.
public DenseMatrix<float> East { get; }
Property Value
North
Gets the North gradient operator.
public DenseMatrix<float> North { get; }
Property Value
NorthEast
Gets the NorthEast gradient operator.
public DenseMatrix<float> NorthEast { get; }
Property Value
NorthWest
Gets the NorthWest gradient operator.
public DenseMatrix<float> NorthWest { get; }
Property Value
South
Gets the South gradient operator.
public DenseMatrix<float> South { get; }
Property Value
SouthEast
Gets the SouthEast gradient operator.
public DenseMatrix<float> SouthEast { get; }
Property Value
SouthWest
Gets the SouthWest gradient operator.
public DenseMatrix<float> SouthWest { get; }
Property Value
West
Gets the West gradient operator.
public DenseMatrix<float> West { get; }
Property Value
Methods
Equals(EdgeDetectorCompassKernel)
public bool Equals(EdgeDetectorCompassKernel other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)
Checks whether two EdgeDetectorCompassKernel structures are equal.
public static bool operator ==(EdgeDetectorCompassKernel left, EdgeDetectorCompassKernel right)
Parameters
left
EdgeDetectorCompassKernelThe left hand EdgeDetectorCompassKernel operand.
right
EdgeDetectorCompassKernelThe right hand EdgeDetectorCompassKernel operand.
Returns
- bool
True if the
left
parameter is equal to theright
parameter; otherwise, false.
operator !=(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)
Checks whether two EdgeDetectorCompassKernel structures are equal.
public static bool operator !=(EdgeDetectorCompassKernel left, EdgeDetectorCompassKernel right)
Parameters
left
EdgeDetectorCompassKernelThe left hand EdgeDetectorCompassKernel operand.
right
EdgeDetectorCompassKernelThe right hand EdgeDetectorCompassKernel operand.
Returns
- bool
True if the
left
parameter is not equal to theright
parameter; otherwise, false.