-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKinectHandler.h
More file actions
47 lines (38 loc) · 1.35 KB
/
KinectHandler.h
File metadata and controls
47 lines (38 loc) · 1.35 KB
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
#pragma once
#ifndef KINECT_HANDLER_H
#define KINECT_HANDLER_H
#include <string>
#include <vector>
#include "KinectDevice.h"
class KinectHandler {
public:
KinectHandler() = default;
void startCapturing();
void stopCapturing();
void setOutputDir(const std::string &outputDir);
void associateFiles(const std::string &rgbDir,
const std::__cxx11::string &depthDir,
const std::string &resultDir,
const bool &cleanUp = true,
const int &maxDifferenceMs = 200);
private:
std::string _prefix{""};
std::string _suffix{""};
std::string _extension{"png"};
std::string _outputDir{""};
std::string _outputFile{"rgb_depth.txt"};
bool _isRunning{false};
bool _enableAutoExposure{true};
bool _enableWhiteBalance{true};
bool _enableRawColor{true};
KinectDevice * _device{nullptr};
void displayResults(const cv::Mat &rgb, const cv::Mat &depth) noexcept;
void createDirectory(const std::string &dirPath);
bool checkDir(std::string &dir) noexcept;
std::string extractFileName(const std::string &file);
std::vector<std::string> getFiles(const std::string &dir, const std::string &filter) noexcept;
void init();
void setDepthMode(const short &depthMode);
std::string getCurrentDateTime() noexcept;
};
#endif