#include <BTLocalMatcherT.h>
Inheritance diagram for BTLocalMatcherT< T >:

Public Member Functions | |
| BTLocalMatcherT () | |
| virtual | ~BTLocalMatcherT () |
| virtual bool | setImagePair (const OvImageT< T > &i1, const OvImageT< T > &i2) |
| virtual bool | setParams (int nparams, double *params) |
| virtual const OvImageT< double > | getMatch (int shiftx, int shifty) |
| virtual const OvImageT< double > | getRawMatch (int shiftx, int shifty) |
Protected Attributes | |
| OvImageT< double > | mImage1 |
| OvImageT< double > | mImage2 |
| OvImageT< double > | mMin1 |
| OvImageT< double > | mMax1 |
| OvImageT< double > | mMin2 |
| OvImageT< double > | mMax2 |
| double | alpha |
The BTLocalMatcherT class is a subclass of OvLocalMatcherT and implements the Birchfield-Tomasi method for intensity matching.
| BTLocalMatcherT< T >::BTLocalMatcherT | ( | ) |
Default constructor with no parameters
| BTLocalMatcherT< T >::~BTLocalMatcherT | ( | ) | [virtual] |
Destructor
| const OvImageT< double > BTLocalMatcherT< T >::getMatch | ( | int | shiftx, | |
| int | shifty = 0 | |||
| ) | [virtual] |
Used to retrieve results of matching the two images with a relative 2D translation. Note: Values of the result are between 0 to 1 always. Parameter alpha is used, and can be set using setParams.
| shiftx | horizontal relative shift | |
| shifty | vertical relative shift |
Implements OvLocalMatcherT< T >.
| const OvImageT< double > BTLocalMatcherT< T >::getRawMatch | ( | int | shiftx, | |
| int | shifty = 0 | |||
| ) | [virtual] |
Used to retrieve raw results of matching the two images with a relative 2D translation. Note: The range of values of the result and their interpretation depends on the particular matcher being used.
| shiftx | horizontal relative shift | |
| shifty | vertical relative shift |
Implements OvLocalMatcherT< T >.
| bool BTLocalMatcherT< T >::setImagePair | ( | const OvImageT< T > & | i1, | |
| const OvImageT< T > & | i2 | |||
| ) | [virtual] |
Method used for specifying the image pair to be matched. This method precomputes stuff needed for Birchfield-Tomasi matching.
| i1 | the first image | |
| i2 | the second image |
Implements OvLocalMatcherT< T >.
| bool BTLocalMatcherT< T >::setParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Used for specifying any parameters required by the matcher.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
Implements OvLocalMatcherT< T >.
double BTLocalMatcherT< T >::alpha [protected] |
Alpha is a constant used to convert raw pixel intensity matches dI into the range 0 to 1 using exp(-alpha*dI/255), where alpha is specified by the user as follows:
double params[] = {20.0};
btmatcher.setMatchingParams(1,params);
In this example, alpha is set to 20. Smaller values of alpha cause more smoothing. OvImageT<double> BTLocalMatcherT< T >::mImage1 [protected] |
copy of input image 1.
OvImageT<double> BTLocalMatcherT< T >::mImage2 [protected] |
copy of input image 2
OvImageT<double> BTLocalMatcherT< T >::mMax1 [protected] |
precomputed maximum image from i1 for speeding up Birchfield Tomasi matching.
OvImageT<double> BTLocalMatcherT< T >::mMax2 [protected] |
precomputed maximum image from i2 for speeding up Birchfield Tomasi matching.
OvImageT<double> BTLocalMatcherT< T >::mMin1 [protected] |
precomputed minimum image from i1 for speeding up Birchfield Tomasi matching.
OvImageT<double> BTLocalMatcherT< T >::mMin2 [protected] |
precomputed minimum image from i2 for speeding up Birchfield Tomasi matching.
1.4.7