OvFlowT< T > Class Template Reference

Class for managing the execution of an optical flow algorithm. More...

#include <OvFlowT.h>

List of all members.

Public Member Functions

 OvFlowT ()
virtual ~OvFlowT ()
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 (OvFlowGlobalMatcherT< T > &flowGlobalMatcher)
virtual void setGlobalMatcherParams (int nparams, double *params)
virtual void setFlowPostprocessor (OvFlowPostprocessor &flowPostProcessor)
virtual void setFlowPostprocessorParams (int nparams, double *params)
virtual bool doOpticalFlow (const OvImageAdapter &i1, const OvImageAdapter &i2, double minshiftX, double maxshiftX, double minshiftY, double maxshiftY, OvImageAdapter &u1, OvImageAdapter &v1, OvImageAdapter &o1, OvImageAdapter &u2, OvImageAdapter &v2, OvImageAdapter &o2)

Protected Attributes

OvImagePairPreprocessorT<
T > * 
mImagePairPreprocessor
OvLocalMatcherT< T > * mLocalImageMatcher
OvFlowGlobalMatcherT< T > * mFlowGlobalMatcher
OvFlowPostprocessormFlowPostprocessor


Detailed Description

template<typename T>
class OvFlowT< T >

Class for managing the execution of an optical flow algorithm.

The OvFlowT class manages the execution of an optical flow algorithm, allowing the user to select any image preprocessors, local matching methods, global flow algorithm, and optical flow and occlusion postprocessors.

Author:
Abhijit Ogale


Constructor & Destructor Documentation

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

Default constructor with no parameters

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

Destructor


Member Function Documentation

template<typename T>
bool OvFlowT< T >::doOpticalFlow ( const OvImageAdapter i1,
const OvImageAdapter i2,
double  minshiftX,
double  maxshiftX,
double  minshiftY,
double  maxshiftY,
OvImageAdapter u1,
OvImageAdapter v1,
OvImageAdapter o1,
OvImageAdapter u2,
OvImageAdapter v2,
OvImageAdapter o2 
) [virtual]

Main method for computing optical flow on an image pair. Note: This method modifies the input images, so be careful.

Parameters:
i1 the first image
i2 the second image
minshiftX method searches for horizontal flow values from minshiftX to maxshiftX
maxshiftX method searches for horizontal flow values from minshiftX to maxshiftX
minshiftY method searches for vertical flow values from minshiftY to maxshiftY
maxshiftY method searches for vertical flow values from minshiftY to maxshiftY
u1 the horizontal flow for image 1. (method sets this).
v1 the vertical flow for image 1. (method sets this).
o1 the occlusion map for image 1. (method sets this).
u2 the horizontal flow for image 2. (method sets this).
v2 the vertical flow for image 2. (method sets this).
o2 the occlusion map for image 2. (method sets this).
Returns:
true if successful.

template<typename T>
void OvFlowT< T >::setFlowPostprocessor ( OvFlowPostprocessor flowPostProcessor  )  [virtual]

Specifies the optical flow and occlusion postprocessor to be used.

Parameters:
flowPostProcessor this object specifies the flow postprocessor to be used.

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

Useful to set any parameters of the flow postprocessor.

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

template<typename T>
void OvFlowT< T >::setGlobalMatcher ( OvFlowGlobalMatcherT< T > &  flowGlobalMatcher  )  [virtual]

Specifies the global optical flow matcher (algorithm).

Parameters:
flowGlobalMatcher this specifies the global optical flow algorithm to be used.

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

Useful to set any parameters of the global flow algorithm.

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

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

Specifies the image pair preprocessor.

Parameters:
imagePairPreprocessor this specifies the preprocessor to be used.

template<typename T>
void OvFlowT< 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 OvFlowT< 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 OvFlowT< 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>
OvFlowGlobalMatcherT<T>* OvFlowT< T >::mFlowGlobalMatcher [protected]

Global optical flow algorithm

template<typename T>
OvFlowPostprocessor* OvFlowT< T >::mFlowPostprocessor [protected]

Flow post processor

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

Image pair preprocessor

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

Local image pair matcher


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