diff --git a/include/ceres/rotation.h b/include/ceres/rotation.h index e9496d772..b6a06f772 100644 --- a/include/ceres/rotation.h +++ b/include/ceres/rotation.h @@ -48,7 +48,6 @@ #include #include #include -#include "glog/logging.h" namespace ceres { @@ -418,7 +417,6 @@ template inline void EulerAnglesToRotationMatrix(const T* euler, const int row_stride_parameter, T* R) { - CHECK_EQ(row_stride_parameter, 3); EulerAnglesToRotationMatrix(euler, RowMajorAdapter3x3(R)); } @@ -496,7 +494,6 @@ void QuaternionToRotation(const T q[4], QuaternionToScaledRotation(q, R); T normalizer = q[0]*q[0] + q[1]*q[1] + q[2]*q[2] + q[3]*q[3]; - CHECK_NE(normalizer, T(0)); normalizer = T(1) / normalizer; for (int i = 0; i < 3; ++i) {