-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.h
55 lines (40 loc) · 945 Bytes
/
view.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
54
55
//
// C++ Interface: view
//
// Description:
//
//
// Author: Valdur Kaldvee, Margus Ernits <[email protected]>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef VIEW_H
#define VIEW_H
#include "image.h"
#include "config.h"
#include <cv.h>
#include <highgui.h>
// #include <pthread.h>
/**
This class displays image to screen, socket or file
@author Valdur Kaldvee, Margus Ernits <[email protected]>
*/
class View{
public:
CvFont font;
static const double hScale=1.0;
static const double vScale=1.0;
static const int lineWidth=1;
int darker; // how mach is black darker than averige of image
static View & getView();
~View();
void show(IplImage *);
Config * conf;
private:
// Image * image;
View();
View(View const&); // Cannot copy singelton
View& operator=(View const&); //hide this too
};
#endif