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
northDenseMatrix<float>The north gradient operator.
northWestDenseMatrix<float>The north-west gradient operator.
westDenseMatrix<float>The west gradient operator.
southWestDenseMatrix<float>The south-west gradient operator.
southDenseMatrix<float>The south gradient operator.
southEastDenseMatrix<float>The south-east gradient operator.
eastDenseMatrix<float>The east gradient operator.
northEastDenseMatrix<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)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EdgeDetectorCompassKernel other)
Parameters
otherEdgeDetectorCompassKernelAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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 ==(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)
Checks whether two EdgeDetectorCompassKernel structures are equal.
public static bool operator ==(EdgeDetectorCompassKernel left, EdgeDetectorCompassKernel right)
Parameters
leftEdgeDetectorCompassKernelThe left hand EdgeDetectorCompassKernel operand.
rightEdgeDetectorCompassKernelThe right hand EdgeDetectorCompassKernel operand.
Returns
- bool
True if the
leftparameter is equal to therightparameter; otherwise, false.
operator !=(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)
Checks whether two EdgeDetectorCompassKernel structures are equal.
public static bool operator !=(EdgeDetectorCompassKernel left, EdgeDetectorCompassKernel right)
Parameters
leftEdgeDetectorCompassKernelThe left hand EdgeDetectorCompassKernel operand.
rightEdgeDetectorCompassKernelThe right hand EdgeDetectorCompassKernel operand.
Returns
- bool
True if the
leftparameter is not equal to therightparameter; otherwise, false.