1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Several chessboard detector improvements:

- fixed uninitialized memory access and memory leaks
- extracted several code blocks to separate functions
- updated part of algorithm to use cv::Mat instead of CvMat and IplImage
This commit is contained in:
Maksim Shabunin
2016-07-19 17:24:55 +03:00
committed by mshabunin
parent fbc44bcb78
commit b8bce55270
5 changed files with 535 additions and 676 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ class calibration_test(NewOpenCVTests):
eps = 0.01
normCamEps = 10.0
normDistEps = 0.001
normDistEps = 0.05
cameraMatrixTest = [[ 532.80992189, 0., 342.4952186 ],
[ 0., 532.93346422, 233.8879292 ],
@@ -68,4 +68,4 @@ class calibration_test(NewOpenCVTests):
self.assertLess(abs(rms - 0.196334638034), eps)
self.assertLess(cv2.norm(camera_matrix - cameraMatrixTest, cv2.NORM_L1), normCamEps)
self.assertLess(cv2.norm(dist_coefs - distCoeffsTest, cv2.NORM_L1), normDistEps)
self.assertLess(cv2.norm(dist_coefs - distCoeffsTest, cv2.NORM_L1), normDistEps)