Namespace for collection of functions that calculate different kinds of correlation values. More...
Enumerations | |
enum class | CorrelationMethod { SumOfSquareDistances , CorrelationCoefficients , CrossCorrelation } |
Correlation calculation methods. More... | |
Functions | |
std::unique_ptr< Image > | Correlate (const ImagePlane &imagePlane, const ImagePlane &templatePlane, Rect< int > aoi, CorrelationMethod method) |
Calculate the correlation between a plane and a template using a selectable calculation method. More... | |
std::unique_ptr< Image > | Correlate (const ImagePlane &imagePlane, const ImagePlane &templatePlane, CorrelationMethod method) |
Calculate the correlation between a plane and a template using a selectable calculation method. More... | |
std::unique_ptr< Image > | Correlate (const ImagePlane &imagePlane, const ImagePlane &templatePlane, Rect< int > aoi) |
Calculate the correlation between a plane and a template. More... | |
std::unique_ptr< Image > | Correlate (const ImagePlane &imagePlane, const ImagePlane &templatePlane) |
Calculate the correlation between a plane and a template. More... | |
std::vector< LocalMaximum > | FindMatches (const ImagePlane &imagePlane, const ImagePlane &templatePlane, double threshold, int locality, Rect< int > aoi, SubPixelMode subPixMode=SubPixelMode::ParabolicFast, Neighborhood subPixRadius=Neighborhood::Use3x3) |
Use the correlation coefficient calculation method to find locations in the input image plane that match the given template. More... | |
std::vector< LocalMaximum > | FindMatches (const ImagePlane &imagePlane, const ImagePlane &templatePlane, double threshold, int locality, SubPixelMode subPixMode=SubPixelMode::ParabolicFast, Neighborhood subPixRadius=Neighborhood::Use3x3) |
Use the correlation coefficient calculation method to find locations in the input image plane that match the given template. More... | |
Namespace for collection of functions that calculate different kinds of correlation values.
|
strong |
Correlation calculation methods.
|
inline |
Calculate the correlation between a plane and a template.
[in] | imagePlane | Image plane to perform the correlation on. |
[in] | templatePlane | Template plane to perform the correlation with. |
Any | exception derived from std::exception including CvbException. |
The result of the correlation will be an accumulator image with 32 bit floating point pixels containing the results. Note that the accumulator will be smaller than the input plane, the difference being width (or height) of the template - 1. The template will be anchored at its central pixel (fractional positions cut off). In other words: The pixel (0, 0) of the accumulator corresponds to image position (int)(template width / 2, template height / 2) and its value will be a representation of the correlation between the input image and the template, centered around this very pixel.
|
inline |
Calculate the correlation between a plane and a template using a selectable calculation method.
[in] | imagePlane | Image plane to perform the correlation on. |
[in] | templatePlane | Template plane to perform the correlation with. |
[in] | method | Correlation method to use. |
Any | exception derived from std::exception including CvbException. |
The result of the correlation will be an accumulator image with 32 bit floating point pixels containing the results. Note that the accumulator will be smaller than the input plane, the difference being width (or height) of the template - 1. The template will be anchored at its central pixel (fractional positions cut off). In other words: The pixel (0, 0) of the accumulator corresponds to image position (int)(template width / 2, template height / 2) and its value will be a representation of the correlation between the input image and the template, centered around this very pixel.
|
inline |
Calculate the correlation between a plane and a template.
[in] | imagePlane | Image plane to perform the correlation on. |
[in] | templatePlane | Template plane to perform the correlation with. |
[in] | aoi | Area of interest to perform the correlation on. |
Any | exception derived from std::exception including CvbException. |
The result of the correlation will be an accumulator image with 32 bit floating point pixels containing the results. Note that the accumulator will be smaller than the input aoi, the difference being width (or height) of the template - 1. The template will be anchored at its central pixel (fractional positions cut off). In other words: The pixel (0, 0) of the accumulator corresponds to image position (int)(template width / 2, template height / 2) and its value will be a representation of the correlation between the input image and the template, centered around this very pixel.
|
inline |
Calculate the correlation between a plane and a template using a selectable calculation method.
[in] | imagePlane | Image plane to perform the correlation on. |
[in] | templatePlane | Template plane to perform the correlation with. |
[in] | aoi | Area of interest to perform the correlation on. |
[in] | method | Correlation method to use. |
Any | exception derived from std::exception including CvbException. |
The result of the correlation will be an accumulator image with 32 bit floating point pixels containing the results. Note that the accumulator will be smaller than the input aoi, the difference being width (or height) of the template - 1. The template will be anchored at its central pixel (fractional positions cut off). In other words: The pixel (0, 0) of the accumulator corresponds to image position (int)(template width / 2, template height / 2) and its value will be a representation of the correlation between the input image and the template, centered around this very pixel.
|
inline |
Use the correlation coefficient calculation method to find locations in the input image plane that match the given template.
[in] | imagePlane | Image plane in which to look for matches. |
[in] | templatePlane | Template to match. |
[in] | threshold | Minimum correlation coefficient to look for (valid values range from 0 to 1). |
[in] | locality | Minimum distance between two valid matches (measured using the L1 norm). |
[in] | aoi | Region of interest in which to look for matches. |
[in] | subPixMode | Mode to be used for determining sub pixel accuracy (see description of SubPixelMode values). |
[in] | subPixRadius | Neighborhood to take account in the sub pixel calculation (see description of Neighborhood values). |
Any | exception derived from std::exception including CvbException. |
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.
|
inline |
Use the correlation coefficient calculation method to find locations in the input image plane that match the given template.
[in] | imagePlane | Image plane in which to look for matches. |
[in] | templatePlane | Template to match. |
[in] | threshold | Minimum correlation coefficient to look for (valid values range from 0 to 1). |
[in] | locality | Minimum distance between two valid matches (measured using the L1 norm). |
[in] | subPixMode | Mode to be used for determining sub pixel accuracy (see description of SubPixelMode values). |
[in] | subPixRadius | Neighborhood to take account in the sub pixel calculation (see description of Neighborhood values). |
Any | exception derived from std::exception including CvbException. |
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.