fix(*): d local params fix.

This commit is contained in:
TinyO 2019-09-03 16:30:19 +08:00
parent 6ecbe85ae4
commit 8af42ee597

View File

@ -282,6 +282,7 @@ void EquidistantCamera::estimateIntrinsics(
std::vector<Eigen::Vector2d> center(boardSize.height); std::vector<Eigen::Vector2d> center(boardSize.height);
int arrayLength = boardSize.height; int arrayLength = boardSize.height;
double *radius = new double[arrayLength]; double *radius = new double[arrayLength];
memset(radius, 0, sizeof(double) * arrayLength);
for (int r = 0; r < boardSize.height; ++r) { for (int r = 0; r < boardSize.height; ++r) {
std::vector<cv::Point2d> circle; std::vector<cv::Point2d> circle;
for (int c = 0; c < boardSize.width; ++c) { for (int c = 0; c < boardSize.width; ++c) {