1#ifndef FLOWCACLULATORCUDA_H
2#define FLOWCACLULATORCUDA_H
4#include "flowcalculator.h"
6#include <opencv2/cudaoptflow.hpp>
7#include <opencv2/cudaarithm.hpp>
8#include <opencv2/cudawarping.hpp>
9#include <opencv2/cudaimgproc.hpp>
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;
54 cv::Ptr<cv::cuda::FarnebackOpticalFlow> m_farn;
The FlowCalculatorCuda class is a hardware specific implementation of FlowCalculator....
Definition flowcalculatorcuda.h:25
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 ...
Definition flowcalculatorcuda.cpp:15
~FlowCalculatorCuda()
FlowCalculatorCuda Destructor cleans up left over data and pointers.
Definition flowcalculatorcuda.cpp:8
The FlowCalculator class is an interface which defines the structure for the hardware specific algori...
Definition flowcalculator.h:23