Class Imaging.Match
- Namespace
- Ranorex
- Assembly
- Ranorex.Core.dll
A match in a image find operation.
public class Imaging.Match
- Inheritance
-
Imaging.Match
- Inherited Members
Constructors
Match(Point, Size, double)
Creates a new instance.
public Match(Point location, Size size, double similarity)
Parameters
locationPointThe location of the match.
sizeSizeThe size of the feature that matched.
similaritydoubleThe similarity of the match.
Match(Rectangle, double)
Creates a new instance.
public Match(Rectangle rect, double similarity)
Parameters
rectRectangleA rectangle that specified the location of the match and the size of the feature that matched.
similaritydoubleThe similarity of the match.
Match(int, int, int, int, double)
Creates a new instance.
public Match(int x, int y, int width, int height, double similarity)
Parameters
xintThe x coordinate of the match.
yintThe y coordinate of the match.
widthintThe width of the feature that matched.
heightintThe height of the feature that matched.
similaritydoubleThe similarity of the match.
Properties
Location
Gets the relative location of the match inside the image.
public Point Location { get; }
Property Value
Similarity
Gets the similarity of the match.
public double Similarity { get; }
Property Value
Size
Gets the size of the feature that matched the image.
public Size Size { get; }
Property Value
Methods
Sort(List<Match>, IComparer<Match>)
Sorts a list of matches using the specified comparer.
public static void Sort(List<Imaging.Match> matches, IComparer<Imaging.Match> comparer)
Parameters
ToLocation(Match)
Converts the match to a location that points to the middle of the feature that matched at the matching location.
public static Location ToLocation(Imaging.Match match)
Parameters
Returns
- Location
A location instance.
ToString()
Returns a string representation of the match.
public override string ToString()
Returns
- string
A string representation of the match.
Operators
implicit operator Location(Match)
Converts the match to a location that points to the middle of the feature that matched at the matching location.
public static implicit operator Location(Imaging.Match match)
Parameters
Returns
- Location
A location instance.