-
Notifications
You must be signed in to change notification settings - Fork 14
/
Drogonfly_ImgRead.h
37 lines (34 loc) · 1.03 KB
/
Drogonfly_ImgRead.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
#pragma once
/*#include "c:\program files\point grey research\flycapture2\include\busmanager.h"
#include "c:\program files\point grey research\flycapture2\include\camera.h"
#include "c:\program files\point grey research\flycapture2\include\error.h"*/
#include "FlyCapture2.h"
#include <iostream>
#include "opencv2/opencv.hpp"
/*#include "c:\program files\point grey research\flycapture2\include\flycapture2defs.h"
#include "c:\program files\point grey research\flycapture2\include\image.h"*/
using namespace FlyCapture2;
using namespace std;
using namespace cv;
class Drogonfly_ImgRead
{
public:
Drogonfly_ImgRead(void);
~Drogonfly_ImgRead(void);
// Initial the Dragonfly Camera
int Camera_Intial(void);
private:
BusManager busMgr;
public:
unsigned int numCameras;
Camera cam;
Error error;
PGRGuid guid;
// raw data captured from the dragonfly camera
Image rawImage;
IplImage* cvImg;
// transfer the image data from camera to IplImage
IplImage* Camera2IplImage(void);
// clear the image data in the camera
void ClearBuffer(void);
};