#include <OvFlowPostprocessor.h>
Public Member Functions | |
| OvFlowPostprocessor () | |
| virtual | ~OvFlowPostprocessor () |
| virtual bool | postProcessFlow (OvImageT< double > &u1, OvImageT< double > &v1, OvImageT< double > &o1, OvImageT< double > &u2, OvImageT< double > &v2, OvImageT< double > &o2)=0 |
| virtual bool | setParams (int nparams, double *params)=0 |
The OvFlowPostprocessor class defines a basic interface for postprocessing optical flow results. Subclasses can implement the interface to provide a variety of preprocessors (e.g., occlusion filling, median filtering, plane fitting, etc.)
| OvFlowPostprocessor::OvFlowPostprocessor | ( | ) |
Default constructor with no parameters
| OvFlowPostprocessor::~OvFlowPostprocessor | ( | ) | [virtual] |
Destructor
| virtual bool OvFlowPostprocessor::postProcessFlow | ( | OvImageT< double > & | u1, | |
| OvImageT< double > & | v1, | |||
| OvImageT< double > & | o1, | |||
| OvImageT< double > & | u2, | |||
| OvImageT< double > & | v2, | |||
| OvImageT< double > & | o2 | |||
| ) | [pure virtual] |
Main method for postprocessing flow results. Note: This method modifies the inputs, so be careful.
| 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). |
| virtual bool OvFlowPostprocessor::setParams | ( | int | nparams, | |
| double * | params | |||
| ) | [pure virtual] |
Used for specifying any parameters required.
| nparams | number of parameters which are being passed | |
| params | the values of the parameters |
1.4.7