Use the correlation coefficient calculation method to find locations
in the input image plane that match the given
template.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static LocalMaximum[] FindMatches( ImagePlane plane, ImagePlane template, double threshold, int locality )
Parameters
- plane
- Type: Stemmer.CvbImagePlane
Image plane in which to look for matches. - template
- Type: Stemmer.CvbImagePlane
Template to match. - threshold
- Type: SystemDouble
Minimum correlation coefficient to look for (valid values range from 0 to 1). - locality
- Type: SystemInt32
Minimum distance between two valid matches (measured using the L1 norm).
Return Value
Type: LocalMaximumList of the local maxima that have been found.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | If the plane to work on has already been disposed. |
Remarks
If the matches fall within the locality distance (measured using the L1 norm), the one with the lower correlation coefficient will be removed from the result list.
This uses ParabolicFast and thus Use3x3.
See Also