-
Notifications
You must be signed in to change notification settings - Fork 3
/
ImageAnalyser.h
41 lines (29 loc) · 1015 Bytes
/
ImageAnalyser.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
#ifndef IMAGE_ANALYSER
#define IMAGE_ANALYSER
#include <utility>
#include <opencv2/opencv.hpp>
#include "UnrolledMap.h"
#include "CylindricalPoint.h"
class ImageAnalyser{
public:
/**
Constructor.
**/
ImageAnalyser(UnrolledMap uM, std::vector<std::vector<unsigned int>> pR,std::vector<CylindricalPoint> cP, std::vector<std::pair<double, double> > coefs):unrolled_map(uM),ind_Patches(pR),CPoints(cP),ind_CoefsLines(coefs)
{}
/**
display rgb image from unrolled map and allow user event
**/
void analyse();
CylindricalPoint getShiftedPoint(std::pair<double, double>& coef,std::vector<unsigned int> pointsInPatch);
/**
menber function to setMouseCallBack
**/
static void onMouse( int event, int x, int y, int flags, void* param);
protected:
std::vector<std::vector<unsigned int>> ind_Patches;
UnrolledMap unrolled_map;
std::vector<CylindricalPoint> CPoints;
std::vector<std::pair<double, double> > ind_CoefsLines;
};
#endif