forked from stupel/Preprocessing
-
Notifications
You must be signed in to change notification settings - Fork 2
/
orientationmap.h
executable file
·53 lines (37 loc) · 1.35 KB
/
orientationmap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef ORIENTATIONMAP_H
#define ORIENTATIONMAP_H
#include "preprocessing_config.h"
class OrientationMap : public QObject
{
Q_OBJECT
public:
explicit OrientationMap(QObject *parent = nullptr);
void setParams(const cv::Mat &imgInput, OMAP_PARAMS omap);
void computeBasicMapCPU();
void computeBasicMapGPU();
void computeAdvancedMapCPU();
void computeAdvancedMapGPU();
void drawBasicMap(const cv::Mat &imgOriginal);
//getNset
cv::Mat getOMap_advanced() const;
cv::Mat getOMap_basic() const;
cv::Mat getImgOMap_basic() const;
float getDuration() const;
af::array getOMapAF_basic() const;
af::array getOMapAF_advanced() const;
const cv::Mat &getQMap() const;
void setQMap(const cv::Mat &newQMap);
private:
QTime timer;
cv::Mat imgInput; // obrazok odtlacku
af::array imgInputAF;
OMAP_PARAMS omap;
cv::Mat oMap_basic; // BASIC smerova mapa (vyhladena, jeden smer pre cely blok)
af::array oMapAF_basic;
cv::Mat oMap_advanced; // ADVANCED smerova mapa (vyhladena, kazdy pixel ma svoj smer)
af::array oMapAF_advanced;
cv::Mat imgOMap_basic; // obrazok BASIC smerovej mapy (ADVANCED mapa sa neda zobrazit, lebo kazdy pixel ma iny smer)
float duration;
cv::Mat qMap; // quality map
};
#endif // ORIENTATIONMAP_H