# 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 RedLine™

The latest pattern matching tool that can locate trained features in a 5 megapixel image. Ideal for high resolution In-Sight vision systems.

- FindPatMaxRedLine: Finds matches to a trained pattern using PatMax RedLine™ algorithms
- TrainPatMaxRedLine: Extracts and trains a pattern from an image using PatMax RedLine™ 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.