99 |
jakw |
1 |
#ifndef AlgorithmGrayCodeHorzVert_H
|
|
|
2 |
#define AlgorithmGrayCodeHorzVert_H
|
95 |
jakw |
3 |
|
|
|
4 |
#include "Algorithm.h"
|
|
|
5 |
|
99 |
jakw |
6 |
class AlgorithmGrayCodeHorzVert : public Algorithm {
|
95 |
jakw |
7 |
public:
|
99 |
jakw |
8 |
AlgorithmGrayCodeHorzVert(unsigned int _screenCols, unsigned int _screenRows);
|
|
|
9 |
virtual ~AlgorithmGrayCodeHorzVert(){}
|
95 |
jakw |
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 |
|
99 |
jakw |
22 |
#endif // AlgorithmGrayCodeHorzVert_H
|