OvStereoT< T > Class Template Reference

Class for managing the execution of a stereo algorithm. More...

#include <OvStereoT.h>

List of all members.

Public Member Functions

 OvStereoT ()
virtual ~OvStereoT ()
virtual void setImagePairPreprocessor (OvImagePairPreprocessorT< T > &imagePairPreprocessor)
virtual void setImagePairPreprocessorParams (int nparams, double *params)
virtual void setLocalImageMatcher (OvLocalMatcherT< T > &localImageMatcher)
virtual void setLocalImageMatcherParams (int nparams, double *params)
virtual void setGlobalMatcher (OvStereoGlobalMatcherT< T > &stereoGlobalMatcher)
virtual void setGlobalMatcherParams (int nparams, double *params)
virtual void setDisparityPostprocessor (OvDisparityPostprocessor &disparityPostProcessor)
virtual void setDisparityPostprocessorParams (int nparams, double *params)
virtual bool doStereoMatching (const OvImageAdapter &i1, const OvImageAdapter &i2, double minshift, double maxshift, OvImageAdapter &leftDisparityMap, OvImageAdapter &rightDisparityMap, OvImageAdapter &leftOcclusions, OvImageAdapter &rightOcclusions)

Protected Attributes

OvImagePairPreprocessorT<
T > * 
mImagePairPreprocessor
OvLocalMatcherT< T > * mLocalImageMatcher
OvStereoGlobalMatcherT< T > * mStereoGlobalMatcher
OvDisparityPostprocessormDisparityPostprocessor


Detailed Description

template<typename T>
class OvStereoT< T >

Class for managing the execution of a stereo algorithm.

The OvStereoT class manages the execution of a stereo algorithm, allowing the user to select any image preprocessors, local matching methods, global stereo algorithm, and disparity and occlusion postprocessors.

Author:
Abhijit Ogale


Constructor & Destructor Documentation

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

Default constructor with no parameters

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

Destructor


Member Function Documentation

template<typename T>
bool OvStereoT< T >::doStereoMatching ( const OvImageAdapter i1,
const OvImageAdapter i2,
double  minshift,
double  maxshift,
OvImageAdapter leftDisparityMap,
OvImageAdapter rightDisparityMap,
OvImageAdapter leftOcclusions,
OvImageAdapter rightOcclusions 
) [virtual]

Main method for executing stereo matching on an image pair. Note: This method modifies the input images, so be careful.

Parameters:
i1 the first image
i2 the second image
minshift method searches for disparities from minshift to maxshift
maxshift method searches for disparities from minshift to maxshift
leftDisparityMap the disparity map for the left image. (method returns this).
rightDisparityMap the disparity map for the right image. (method returns this).
leftOcclusions the occlusion map for the left image. (method returns this).
rightOcclusions the occlusion map for the right image. (method returns this).
Returns:
true if successful.

template<typename T>
void OvStereoT< T >::setDisparityPostprocessor ( OvDisparityPostprocessor disparityPostProcessor  )  [virtual]

Specifies the disparity postprocessor to be used.

Parameters:
disparityPostProcessor this OvDisparityPostprocessor object specifies the postprocessor to be used.

template<typename T>
void OvStereoT< T >::setDisparityPostprocessorParams ( int  nparams,
double *  params 
) [virtual]

Useful to set any parameters of the disparity postprocessor.

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

template<typename T>
void OvStereoT< T >::setGlobalMatcher ( OvStereoGlobalMatcherT< T > &  stereoGlobalMatcher  )  [virtual]

Specifies the global stereo matcher (algorithm).

Parameters:
stereoGlobalMatcher this specifies the global stereo algorithm to be used.

template<typename T>
void OvStereoT< T >::setGlobalMatcherParams ( int  nparams,
double *  params 
) [virtual]

Useful to set any parameters of the global stereo algorithm.

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

template<typename T>
void OvStereoT< T >::setImagePairPreprocessor ( OvImagePairPreprocessorT< T > &  imagePairPreprocessor  )  [virtual]

Specifies the image pair preprocessor.

Parameters:
imagePairPreprocessor this specifies the preprocessor to be used.

template<typename T>
void OvStereoT< T >::setImagePairPreprocessorParams ( int  nparams,
double *  params 
) [virtual]

Useful to set any parameters of the image pair preprocessor.

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

template<typename T>
void OvStereoT< T >::setLocalImageMatcher ( OvLocalMatcherT< T > &  localImageMatcher  )  [virtual]

Specifies the local image matcher to be used.

Parameters:
localImageMatcher this is an OvLocalMatcherT<T> object which matches a pair of images.

template<typename T>
void OvStereoT< T >::setLocalImageMatcherParams ( int  nparams,
double *  params 
) [virtual]

Useful to set parameters of the local image matcher.

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


Member Data Documentation

template<typename T>
OvDisparityPostprocessor* OvStereoT< T >::mDisparityPostprocessor [protected]

Disparity map post processor

template<typename T>
OvImagePairPreprocessorT<T>* OvStereoT< T >::mImagePairPreprocessor [protected]

Image pair preprocessor

template<typename T>
OvLocalMatcherT<T>* OvStereoT< T >::mLocalImageMatcher [protected]

Local image pair matcher

template<typename T>
OvStereoGlobalMatcherT<T>* OvStereoT< T >::mStereoGlobalMatcher [protected]

Global stereo algorithm


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