fix(equidistant_camera):fix array radius initialize problems
This commit is contained in:
parent
8bc2401bb3
commit
d1104099c3
|
@ -94,7 +94,6 @@ namespace Ctain {
|
|||
return m;
|
||||
}
|
||||
|
||||
|
||||
friend std::ostream &operator <<(std::ostream &os,const Matrix<_Scalar> &m) {
|
||||
// os << std::endl;
|
||||
for (int i = 0; i < m._Rows; i++) {
|
||||
|
|
|
@ -282,6 +282,7 @@ void EquidistantCamera::estimateIntrinsics(
|
|||
std::vector<Eigen::Vector2d> center(boardSize.height);
|
||||
int arrayLength = boardSize.height;
|
||||
double *radius = new double[arrayLength];
|
||||
memset(radius, 0, arrayLength * sizeof(double));
|
||||
for (int r = 0; r < boardSize.height; ++r) {
|
||||
std::vector<cv::Point2d> circle;
|
||||
for (int c = 0; c < boardSize.width; ++c) {
|
||||
|
@ -378,6 +379,7 @@ void EquidistantCamera::estimateIntrinsics2(
|
|||
std::vector<Ctain::Vector2d> center(boardSize.height);
|
||||
int arrayLength = boardSize.height;
|
||||
double *radius = new double[arrayLength];
|
||||
memset(radius, 0, arrayLength * sizeof(double));
|
||||
for (int r = 0; r < boardSize.height; ++r) {
|
||||
std::vector<cv::Point2d> circle;
|
||||
for (int c = 0; c < boardSize.width; ++c) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user