Struct EdgeDetectorCompassKernel
Represents an edge detection convolution kernel consisting of eight gradient operators.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Convolution
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct EdgeDetectorCompassKernel : IEquatable<EdgeDetectorCompassKernel>Constructors
| Improve this Doc View SourceEdgeDetectorCompassKernel(DenseMatrix<Single>, DenseMatrix<Single>, DenseMatrix<Single>, DenseMatrix<Single>, DenseMatrix<Single>, DenseMatrix<Single>, DenseMatrix<Single>, DenseMatrix<Single>)
Initializes a new instance of the EdgeDetectorCompassKernel struct.
Declaration
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
| Type | Name | Description | 
|---|---|---|
| DenseMatrix<Single> | north | The north gradient operator. | 
| DenseMatrix<Single> | northWest | The north-west gradient operator. | 
| DenseMatrix<Single> | west | The west gradient operator. | 
| DenseMatrix<Single> | southWest | The south-west gradient operator. | 
| DenseMatrix<Single> | south | The south gradient operator. | 
| DenseMatrix<Single> | southEast | The south-east gradient operator. | 
| DenseMatrix<Single> | east | The east gradient operator. | 
| DenseMatrix<Single> | northEast | The north-east gradient operator. | 
Fields
| Improve this Doc View SourceKirsch
An edge detection kenel comprised of Kirsch gradient operators. http://en.wikipedia.org/wiki/Kirsch_operator.
Declaration
public static EdgeDetectorCompassKernel KirschField Value
| Type | Description | 
|---|---|
| EdgeDetectorCompassKernel | 
Robinson
An edge detection kenel comprised of Robinson gradient operators. http://www.tutorialspoint.com/dip/Robinson_Compass_Mask.htm
Declaration
public static EdgeDetectorCompassKernel RobinsonField Value
| Type | Description | 
|---|---|
| EdgeDetectorCompassKernel | 
Properties
| Improve this Doc View SourceEast
Gets the East gradient operator.
Declaration
public readonly DenseMatrix<float> East { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
North
Gets the North gradient operator.
Declaration
public readonly DenseMatrix<float> North { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
NorthEast
Gets the NorthEast gradient operator.
Declaration
public readonly DenseMatrix<float> NorthEast { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
NorthWest
Gets the NorthWest gradient operator.
Declaration
public readonly DenseMatrix<float> NorthWest { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
South
Gets the South gradient operator.
Declaration
public readonly DenseMatrix<float> South { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
SouthEast
Gets the SouthEast gradient operator.
Declaration
public readonly DenseMatrix<float> SouthEast { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
SouthWest
Gets the SouthWest gradient operator.
Declaration
public readonly DenseMatrix<float> SouthWest { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
West
Gets the West gradient operator.
Declaration
public readonly DenseMatrix<float> West { get; }Property Value
| Type | Description | 
|---|---|
| DenseMatrix<Single> | 
Methods
| Improve this Doc View SourceEquals(EdgeDetectorCompassKernel)
Declaration
public readonly bool Equals(EdgeDetectorCompassKernel other)Parameters
| Type | Name | Description | 
|---|---|---|
| EdgeDetectorCompassKernel | other | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Equals(Object)
Declaration
public override readonly bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | 
Overrides
Operators
| Improve this Doc View SourceEquality(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)
Checks whether two EdgeDetectorCompassKernel structures are equal.
Declaration
public static bool operator ==(EdgeDetectorCompassKernel left, EdgeDetectorCompassKernel right)Parameters
| Type | Name | Description | 
|---|---|---|
| EdgeDetectorCompassKernel | left | The left hand EdgeDetectorCompassKernel operand. | 
| EdgeDetectorCompassKernel | right | The right hand EdgeDetectorCompassKernel operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the  | 
Inequality(EdgeDetectorCompassKernel, EdgeDetectorCompassKernel)
Checks whether two EdgeDetectorCompassKernel structures are equal.
Declaration
public static bool operator !=(EdgeDetectorCompassKernel left, EdgeDetectorCompassKernel right)Parameters
| Type | Name | Description | 
|---|---|---|
| EdgeDetectorCompassKernel | left | The left hand EdgeDetectorCompassKernel operand. | 
| EdgeDetectorCompassKernel | right | The right hand EdgeDetectorCompassKernel operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the  |