# Pattern Match

The In-Sight Pattern Match tools locate features in an input image that exhibit maximum similarity to a trained pattern. This kind of pattern matching is also referred to as template matching. The Pattern Match tools include the following functions:

## PatMax

High speed and high accuracy pattern matching tool using a feature-based representations.

- FindPatMaxPatterns: Finds matches to a trained pattern using PatMax® algorithms.
- TrainPatMaxPattern: Extracts and trains a pattern from an image using PatMax® algorithms.

## Sorting

- SortPatterns: Sorts pattern match positions.

## About Pattern Finding

Pattern finding can exhibit a range of characteristics depending on the nature of the similarity metrics employed, but the basic concepts remain more or less the same regardless of the implementation.

The pattern finding process consists of two phases: training and finding. In the training phase, a region containing an example of the pattern to be located is manually identified and extracted to create a trained pattern. In the finding phase, new images presented to the system are searched for positions that exhibit maximum similarity, according to the specified metrics. These local match positions are sorted in order of descending similarity, and the best responses above a specified minimum level of similarity are reported.