BTLocalMatcherT< T > Class Template Reference

Birchfield-Tomasi sampling-insensitive intensity local matcher. More...

#include <BTLocalMatcherT.h>

Inheritance diagram for BTLocalMatcherT< T >:

OvLocalMatcherT< T > List of all members.

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

Detailed Description

template<typename T>
class BTLocalMatcherT< T >

Birchfield-Tomasi sampling-insensitive intensity local matcher.

The BTLocalMatcherT class is a subclass of OvLocalMatcherT and implements the Birchfield-Tomasi method for intensity matching.

Author:
Abhijit Ogale


Constructor & Destructor Documentation

template<typename T>
BTLocalMatcherT< T >::BTLocalMatcherT (  ) 

Default constructor with no parameters

template<typename T>
BTLocalMatcherT< T >::~BTLocalMatcherT (  )  [virtual]

Destructor


Member Function Documentation

template<typename T>
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.

Parameters:
shiftx horizontal relative shift
shifty vertical relative shift
Returns:
resulting single channel image if sucessful (values between 0 (no match) and 1 (match)).
See also:
getRawMatch(int shiftx, int shifty)

setParams(int nparams, double*params)

Implements OvLocalMatcherT< T >.

template<typename 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.

Parameters:
shiftx horizontal relative shift
shifty vertical relative shift
Returns:
result image if sucessful, which has same number of channels as the input images.
See also:
getMatch(int shiftx, int shifty)

Implements OvLocalMatcherT< T >.

template<typename 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.

Parameters:
i1 the first image
i2 the second image
Returns:
true if successful (both images are of the same dimensions).

Implements OvLocalMatcherT< T >.

template<typename T>
bool BTLocalMatcherT< T >::setParams ( int  nparams,
double *  params 
) [virtual]

Used for specifying any parameters required by the matcher.

Parameters:
nparams number of parameters which are being passed
params the values of the parameters
Returns:
true if successful.

Implements OvLocalMatcherT< T >.


Member Data Documentation

template<typename 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.
See also:
setMatchingParams(int nparams, double*params)

template<typename T>
OvImageT<double> BTLocalMatcherT< T >::mImage1 [protected]

copy of input image 1.

template<typename T>
OvImageT<double> BTLocalMatcherT< T >::mImage2 [protected]

copy of input image 2

template<typename T>
OvImageT<double> BTLocalMatcherT< T >::mMax1 [protected]

precomputed maximum image from i1 for speeding up Birchfield Tomasi matching.

template<typename T>
OvImageT<double> BTLocalMatcherT< T >::mMax2 [protected]

precomputed maximum image from i2 for speeding up Birchfield Tomasi matching.

template<typename T>
OvImageT<double> BTLocalMatcherT< T >::mMin1 [protected]

precomputed minimum image from i1 for speeding up Birchfield Tomasi matching.

template<typename T>
OvImageT<double> BTLocalMatcherT< T >::mMin2 [protected]

precomputed minimum image from i2 for speeding up Birchfield Tomasi matching.


The documentation for this class was generated from the following file:
Generated on Thu Feb 1 15:58:49 2007 for OpenVis3D by  doxygen 1.4.7