Newer
Older
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
#pragma once
#include <pylon/PylonIncludes.h>
#include <pylon/BaslerUniversalInstantCamera.h>
#include <iostream>
#include <string>
#include <vector>
class BaslerCam {
private:
Pylon::CBaslerUniversalInstantCamera camera;
public:
BaslerCam();
~BaslerCam();
void open(int index);
void printDeviceInfo();
void setExposure(double tauExp);
double getExposure();
void setFrameRate(uint fr);
void setFrameRateMax();
void setGain(double gain);
double getGain();
void setROI(uint offsetX, uint offsetY, uint width, uint height);
uint getOffsetX();
uint getOffsetY();
uint getWidth();
uint getHeight();
void setAcquisitionMode(std::string mode);
void printAvailAcqModes();
void startGrabbing();
void stopGrabbing();
bool isGrabbing();
std::vector<uint8_t> getImage();
};