#include <OvStereoT.h>
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 |
| OvDisparityPostprocessor * | mDisparityPostprocessor |
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.
| 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.
| 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). |
| void OvStereoT< T >::setDisparityPostprocessor | ( | OvDisparityPostprocessor & | disparityPostProcessor | ) | [virtual] |
Specifies the disparity postprocessor to be used.
| disparityPostProcessor | this OvDisparityPostprocessor object specifies the postprocessor to be used. |
| void OvStereoT< T >::setDisparityPostprocessorParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Useful to set any parameters of the disparity postprocessor.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
| void OvStereoT< T >::setGlobalMatcher | ( | OvStereoGlobalMatcherT< T > & | stereoGlobalMatcher | ) | [virtual] |
Specifies the global stereo matcher (algorithm).
| stereoGlobalMatcher | this specifies the global stereo algorithm to be used. |
| void OvStereoT< T >::setGlobalMatcherParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Useful to set any parameters of the global stereo algorithm.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
| void OvStereoT< T >::setImagePairPreprocessor | ( | OvImagePairPreprocessorT< T > & | imagePairPreprocessor | ) | [virtual] |
Specifies the image pair preprocessor.
| imagePairPreprocessor | this specifies the preprocessor to be used. |
| void OvStereoT< T >::setImagePairPreprocessorParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Useful to set any parameters of the image pair preprocessor.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
| void OvStereoT< T >::setLocalImageMatcher | ( | OvLocalMatcherT< T > & | localImageMatcher | ) | [virtual] |
Specifies the local image matcher to be used.
| localImageMatcher | this is an OvLocalMatcherT<T> object which matches a pair of images. |
| void OvStereoT< T >::setLocalImageMatcherParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Useful to set parameters of the local image matcher.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
OvDisparityPostprocessor* OvStereoT< T >::mDisparityPostprocessor [protected] |
Disparity map post processor
OvImagePairPreprocessorT<T>* OvStereoT< T >::mImagePairPreprocessor [protected] |
Image pair preprocessor
OvLocalMatcherT<T>* OvStereoT< T >::mLocalImageMatcher [protected] |
Local image pair matcher
OvStereoGlobalMatcherT<T>* OvStereoT< T >::mStereoGlobalMatcher [protected] |
Global stereo algorithm
1.4.7