95 |
jakw |
1 |
#ifndef AlgorithmGrayCodeHQ_H
|
|
|
2 |
#define AlgorithmGrayCodeHQ_H
|
|
|
3 |
|
|
|
4 |
#include "Algorithm.h"
|
|
|
5 |
|
|
|
6 |
class AlgorithmGrayCodeHQ : public Algorithm {
|
|
|
7 |
public:
|
|
|
8 |
AlgorithmGrayCodeHQ(unsigned int _screenCols, unsigned int _screenRows);
|
|
|
9 |
virtual ~AlgorithmGrayCodeHQ(){}
|
|
|
10 |
unsigned int getNPatterns(){return N;}
|
|
|
11 |
int getscreenCols(){return screenCols;}
|
|
|
12 |
int getscreenRows(){return screenRows;}
|
|
|
13 |
// Encoding
|
|
|
14 |
cv::Mat getEncodingPattern(unsigned int depth);
|
|
|
15 |
// Matching
|
|
|
16 |
void get3DPoints(SMCalibrationParameters calibration, const std::vector<cv::Mat>& frames0, const std::vector<cv::Mat>& frames1, std::vector<cv::Point3f>& Q, std::vector<cv::Vec3b>& color);
|
|
|
17 |
protected:
|
|
|
18 |
std::vector<cv::Mat> patterns;
|
|
|
19 |
int NbitsHorz, NbitsVert;
|
|
|
20 |
};
|
|
|
21 |
|
|
|
22 |
#endif // AlgorithmGrayCodeHQ_H
|