iVS3D v2.0.0
Loading...
Searching...
No Matches
flowcalculatorcuda.h
1#ifndef FLOWCACLULATORCUDA_H
2#define FLOWCACLULATORCUDA_H
3
4#include "flowcalculator.h"
5
6#include <opencv2/cudaoptflow.hpp>
7#include <opencv2/cudaarithm.hpp>
8#include <opencv2/cudawarping.hpp>
9#include <opencv2/cudaimgproc.hpp>
10
25{
26public:
39 FlowCalculatorCuda(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);
51 double calculateFlow(cv::Mat fromMat, cv::Mat toMat) override;
52
53private:
54 cv::Ptr<cv::cuda::FarnebackOpticalFlow> m_farn;
55};
56
57#endif // FLOWCACLULATORCUDA_H
The FlowCalculatorCuda class is a hardware specific implementation of FlowCalculator....
Definition flowcalculatorcuda.h:25
FlowCalculatorCuda(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)
FlowCalculatorCuda Constructor creates a Farneback object which is used to execute the farneback algo...
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 ...
~FlowCalculatorCuda()
FlowCalculatorCuda Destructor cleans up left over data and pointers.
The FlowCalculator class is an interface which defines the structure for the hardware specific algori...
Definition flowcalculator.h:23