iVS3D v2.0.0
Loading...
Searching...
No Matches
flowcalculator.h
1#ifndef FLOWCALCULATOR_H
2#define FLOWCALCULATOR_H
3
4#include <QObject>
5#include <opencv2/core.hpp>
6#include <QtDebug>
7
22class FlowCalculator : public QObject
23{
24 Q_OBJECT
25public:
33 virtual double calculateFlow(cv::Mat fromMat, cv::Mat toMat) = 0;
34protected:
40 double flowMatToDouble(cv::Mat mat);
41private:
47 double median(std::vector<double> vec);
48};
49
50#endif // FLOWCALCULATOR_H
The FlowCalculator class is an interface which defines the structure for the hardware specific algori...
Definition flowcalculator.h:23
double flowMatToDouble(cv::Mat mat)
flowMatToDouble reduces a flow-matrix to a single floating point value, if that mat was empty return ...
virtual double calculateFlow(cv::Mat fromMat, cv::Mat toMat)=0
calculateFlow computes the flow between two images and reduces the resulting flow-matrix to a single ...
double median(std::vector< double > vec)
median calculates the median of a double vector in place