-
Notifications
You must be signed in to change notification settings - Fork 0
/
image_generator.h
53 lines (41 loc) · 967 Bytes
/
image_generator.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
/**
* image_generator.h: For talking to camera and generating formatted
* images for use in vissynth.cpp
* AUTHORS:
* Chang
* Evan
* Sam ([email protected])
* Yui
*/
// Header Guards:
#ifndef IMAGE_GENERATOR_H
#define IMAGE_GENERATOR_H
#include "cv.h"
#include "ml.h"
#include "cxcore.h"
#include "cxtypes.h"
#include "highgui.h"
#include "bit_rep.h"
using namespace cv;
class ImageGenerator {
private:
CvCapture* capture;
IplImage* frame;
IplImage* frameProcessed;
// Fill a provided bitrep with img's information
bool fillBitRep(IplImage* img, BitRep &br);
public:
ImageGenerator();
~ImageGenerator();
// Initialize camera:
bool init();
// Pull image in from camera:
bool pullImage(BitRep &br);
/*
// Transform image into bit rep, add to queue:
void transformImage();
// Dequeue next bit rep:
bit_rep* nextRep();
*/
};
#endif