-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCalibration.hpp
More file actions
39 lines (29 loc) · 846 Bytes
/
Copy pathCalibration.hpp
File metadata and controls
39 lines (29 loc) · 846 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
//
// Calibration.hpp
// opencv
//
// Created by 심지훈 on 11/08/2019.
// Copyright © 2019 Shim. All rights reserved.
//
#ifndef Calibration_hpp
#define Calibration_hpp
#include "detectionHeader.h"
class Calibration {
private:
int numBoards = 15;
int numCornersHor = 9;
int numCornersVer = 6;
int numSquares = numCornersHor * numCornersVer;
Size boardSize = Size(numCornersHor, numCornersVer);
const Size size = Size(640,360);
Mat intrinsic = Mat(3,3, CV_32FC1);
Mat distCoeffs;
public:
Calibration(Mat intrinsic, Mat distCoeffs);
Calibration();
void cameraCalibration(String chessBoardPath);
void saveCameraMatrix(String filePath);
void loadCameraMatrix(String filePath, String name);
Mat getUndistortedImg(Mat input);
};
#endif /* Calibration_hpp */