ImageCorner Struct

A corner found by ImageProcessingExtensions.DetectCorners: a pixel and the strength of its response.

public readonly struct ImageCorner : IEquatable<ImageCorner>
Implements

Constructors

NameDescription
ImageCorner(int, int, double)Initializes a new instance of the ImageCorner struct.

ImageCorner(int, int, double)

ImageCorner.cs

Initializes a new instance of the ImageCorner struct.

public ImageCorner(int x, int y, double response)

Parameters

x int
The column of the pixel.
y int
The row of the pixel.
response double
The response of the detector at the pixel.

Properties

NameDescription
LocationGets the pixel.
ResponseGets the response of the detector at the pixel, larger for a stronger corner: the Harris measure det(M) - k trace(M)², the smaller eigenvalue of M (Shi-Tomasi), with M the structure tensor of the samples as fractions of 1; or the FAST score, the larger sum of the differences beyond the threshold of the brighter or of the darker pixels of the circle, in fractions of 1.
XGets the column of the pixel.
YGets the row of the pixel.

Gets the pixel.

public Point Location { get; }

Property value

Point

Gets the response of the detector at the pixel, larger for a stronger corner: the Harris measure det(M) - k trace(M)², the smaller eigenvalue of M (Shi-Tomasi), with M the structure tensor of the samples as fractions of 1; or the FAST score, the larger sum of the differences beyond the threshold of the brighter or of the darker pixels of the circle, in fractions of 1.

public double Response { get; }

Property value

double

Gets the column of the pixel.

public int X { get; }

Property value

int

Gets the row of the pixel.

public int Y { get; }

Property value

int

Methods

NameDescription
Equals(ImageCorner)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Indicates whether this instance and a specified object are equal.
GetHashCode()Returns the hash code for this instance.
ToString()Returns the corner formatted as ({X}, {Y}) {Response}.

Equals overloads

Equals(ImageCorner)

ImageCorner.cs

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

public bool Equals(ImageCorner other)
Parameters
other ImageCorner
An object to compare with this object.
Returns

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

Equals(object?)

ImageCorner.cs

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()

ImageCorner.cs

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.

ToString()

ImageCorner.cs

Returns the corner formatted as ({X}, {Y}) {Response}.

public override string ToString()

Returns

string A string representation of the corner.

Operators

NameDescription
operator ==(ImageCorner, ImageCorner)Compares two corners for equality.
operator !=(ImageCorner, ImageCorner)Compares two corners for inequality.

operator ==(ImageCorner, ImageCorner)

ImageCorner.cs

Compares two corners for equality.

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

Parameters

left ImageCorner
The first corner.
right ImageCorner
The second corner.

Returns

bool true if both corners are equal; otherwise false.

operator !=(ImageCorner, ImageCorner)

ImageCorner.cs

Compares two corners for inequality.

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

Parameters

left ImageCorner
The first corner.
right ImageCorner
The second corner.

Returns

bool true if the corners differ; otherwise false.