Table of Contents

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

location Point

The location of the match.

size Size

The size of the feature that matched.

similarity double

The similarity of the match.

Match(Rectangle, double)

Creates a new instance.

public Match(Rectangle rect, double similarity)

Parameters

rect Rectangle

A rectangle that specified the location of the match and the size of the feature that matched.

similarity double

The 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

x int

The x coordinate of the match.

y int

The y coordinate of the match.

width int

The width of the feature that matched.

height int

The height of the feature that matched.

similarity double

The similarity of the match.

Properties

Location

Gets the relative location of the match inside the image.

public Point Location { get; }

Property Value

Point

Similarity

Gets the similarity of the match.

public double Similarity { get; }

Property Value

double

Size

Gets the size of the feature that matched the image.

public Size Size { get; }

Property Value

Size

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

matches List<Imaging.Match>

A list of matches.

comparer IComparer<Imaging.Match>

A comparer.

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

match Imaging.Match

A match.

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

match Imaging.Match

A match.

Returns

Location

A location instance.