ImageCorner Struct
A corner found by ImageProcessingExtensions.DetectCorners: a pixel and the strength of its response.
public readonly struct ImageCorner : IEquatable<ImageCorner>- Implements
Constructors
| Name | Description |
|---|---|
| ImageCorner(int, int, double) | Initializes a new instance of the ImageCorner struct. |
ImageCorner(int, int, double)
ImageCorner.csProperties
| Name | Description |
|---|---|
| Location | Gets the pixel. |
| Response | 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. |
| X | Gets the column of the pixel. |
| Y | Gets the row of the pixel. |
Location
ImageCorner.csResponse
ImageCorner.csGets 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
Methods
| Name | Description |
|---|---|
| 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.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(ImageCorner other)Parameters
otherImageCorner- 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.csGetHashCode()
ImageCorner.csToString()
ImageCorner.csOperators
| Name | Description |
|---|---|
| operator ==(ImageCorner, ImageCorner) | Compares two corners for equality. |
| operator !=(ImageCorner, ImageCorner) | Compares two corners for inequality. |
operator ==(ImageCorner, ImageCorner)
ImageCorner.csCompares two corners for equality.
public static bool operator ==(ImageCorner left, ImageCorner right)Parameters
leftImageCorner- The first corner.
rightImageCorner- The second corner.
Returns
bool true if both corners are equal; otherwise false.
operator !=(ImageCorner, ImageCorner)
ImageCorner.csCompares two corners for inequality.
public static bool operator !=(ImageCorner left, ImageCorner right)Parameters
leftImageCorner- The first corner.
rightImageCorner- The second corner.
Returns
bool true if the corners differ; otherwise false.