#include <OvFlowT.h>
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 |
| OvFlowPostprocessor * | mFlowPostprocessor |
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.
| 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.
| 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). |
| void OvFlowT< T >::setFlowPostprocessor | ( | OvFlowPostprocessor & | flowPostProcessor | ) | [virtual] |
Specifies the optical flow and occlusion postprocessor to be used.
| flowPostProcessor | this object specifies the flow postprocessor to be used. |
| void OvFlowT< T >::setFlowPostprocessorParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Useful to set any parameters of the flow postprocessor.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
| void OvFlowT< T >::setGlobalMatcher | ( | OvFlowGlobalMatcherT< T > & | flowGlobalMatcher | ) | [virtual] |
Specifies the global optical flow matcher (algorithm).
| flowGlobalMatcher | this specifies the global optical flow algorithm to be used. |
| void OvFlowT< T >::setGlobalMatcherParams | ( | int | nparams, | |
| double * | params | |||
| ) | [virtual] |
Useful to set any parameters of the global flow algorithm.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
| void OvFlowT< T >::setImagePairPreprocessor | ( | OvImagePairPreprocessorT< T > & | imagePairPreprocessor | ) | [virtual] |
Specifies the image pair preprocessor.
| imagePairPreprocessor | this specifies the preprocessor to be used. |
| void OvFlowT< 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 OvFlowT< 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 OvFlowT< 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 |
OvFlowGlobalMatcherT<T>* OvFlowT< T >::mFlowGlobalMatcher [protected] |
Global optical flow algorithm
OvFlowPostprocessor* OvFlowT< T >::mFlowPostprocessor [protected] |
Flow post processor
OvImagePairPreprocessorT<T>* OvFlowT< T >::mImagePairPreprocessor [protected] |
Image pair preprocessor
OvLocalMatcherT<T>* OvFlowT< T >::mLocalImageMatcher [protected] |
Local image pair matcher
1.4.7