1#ifndef FLOWCALCULATORCPU_H
2#define FLOWCALCULATORCPU_H
4#include "flowcalculator.h"
6#include <opencv2/video/tracking.hpp>
37 FlowCalculatorCpu(
int numLevels=5,
double pyrScale=0.5,
bool fastPyramids=
false,
int winSize=13,
int numIters=10,
int polyN=5,
double polySigma=1.1,
int flags=0);
52 cv::Ptr<cv::FarnebackOpticalFlow> m_farn;
The FlowCalculatorCpu class is a hardware specific implementation of FlowCalculator....
Definition flowcalculatorcpu.h:23
~FlowCalculatorCpu()
FlowCalculatorCpu Destructor cleans up left over data and pointers.
double calculateFlow(cv::Mat fromMat, cv::Mat toMat) override
calculateFlow computes the flow between two images and reduces the resulting flow-matrix to a single ...
FlowCalculatorCpu(int numLevels=5, double pyrScale=0.5, bool fastPyramids=false, int winSize=13, int numIters=10, int polyN=5, double polySigma=1.1, int flags=0)
FlowCalculatorCpu Constructor creates a Farneback object which is used to execute the farneback algor...
The FlowCalculator class is an interface which defines the structure for the hardware specific algori...
Definition flowcalculator.h:23