-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageProcess.h
More file actions
43 lines (30 loc) · 877 Bytes
/
ImageProcess.h
File metadata and controls
43 lines (30 loc) · 877 Bytes
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
//
// Created by tim on 05.02.22.
//
#ifndef OBJECTTRACKING_IMAGEPROCESS_H
#define OBJECTTRACKING_IMAGEPROCESS_H
#define COLORFORMAT_RGB 0
#define COLORFORMAT_BGR 1
#define COLORFORMAT_RGBA 2
#include <unistd.h>
#include <cstdint>
class ImageProcess {
public:
ImageProcess();
void setImagePointer(uint8_t *image);
void setImageSize(int width, int height);
void setColorFormat(uint8_t cf);
void colorFinder(int fenster_x, int fenster_y,int width,int height,int farbkontrollerot,int farbkontrollegruen,int farbkontrolleblau);
uint8_t getRed(int x, int y);
uint8_t getGreen(int x, int y);
uint8_t getBlue(int x, int y);
uint8_t *image;
int width;
int height;
uint8_t off_red=2;
uint8_t off_green=1;
uint8_t off_blue=0;
private:
uint8_t colorformat=COLORFORMAT_RGB;
};
#endif //OBJECTTRACKING_IMAGEPROCESS_H