iVS3D v2.0.0
Loading...
Searching...
No Matches
flowcalculatorcpu.h
1#ifndef FLOWCALCULATORCPU_H
2#define FLOWCALCULATORCPU_H
3
4#include "flowcalculator.h"
5
6#include <opencv2/video/tracking.hpp>
7#include <qdebug.h>
8
23{
24public:
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);
49 double calculateFlow(cv::Mat fromMat, cv::Mat toMat) override;
50
51private:
52 cv::Ptr<cv::FarnebackOpticalFlow> m_farn;
53};
54
55#endif // FLOWCALCULATORCPU_H
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