-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
37 lines (29 loc) · 967 Bytes
/
utils.h
File metadata and controls
37 lines (29 loc) · 967 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
#ifndef UTILS_H
#define UTILS_H
#define IMAGES_DIR "rap3df_data_02"
#define JSON_IMAGES_INFO "database.json"
#define FILE_BMP_RGB "rgb_ID.bmp"
#define FILE_BMP_IR_BG_RM "ir_rmBg_ID.bmp"
#define FILE_BMP_DEPTH_BG_RM "depth_bgRm_ID.bmp"
#define FILE_BMP_DEPTH_RGB_BG_RM "depth_rgb_bgRm_ID.bmp"
#define FILE_DATA_DEPTH "depth_ID.data"
#define FILE_DATA_DEPTH_BG_REM "depth_bgRm_ID.data"
#define FILE_DATA_IR_BG_REM "ir_bgRm_ID.data"
struct Pixel
{
unsigned char Blue;
unsigned char Green;
unsigned char Red;
unsigned char Alpha;
};
void WriteBMPFile(std::vector<uint8_t> pixelVec, std::string fileName, uint32_t WIDTH, uint32_t HEIGHT);
void WriteFile(std::vector<uint16_t> dataVec, std::string fileName, uint32_t WIDTH, uint32_t HEIGHT);
#ifdef UNUSED
#elif defined(__GNUC__)
# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
#elif defined(__LCLINT__)
# define UNUSED(x) /*@unused@*/ x
#else
# define UNUSED(x) x
#endif
#endif // CAMERA_H