RGBD: enabled normals test, removed some tabs

pull/474/head
Maksim Shabunin 9 years ago
parent 9c413930d4
commit 0b348ea96a
  1. 2
      modules/rgbd/src/normal.cpp
  2. 8
      modules/rgbd/test/test_normal.cpp

@ -527,7 +527,7 @@ multiply_by_K_inv(const Matx<T, 3, 3> & K_inv, U a, U b, U c, Vec<T, 3> &res)
// Get the mapping function for SRI
float min_theta = (float)std::asin(sin_theta(0, 0)), max_theta = (float)std::asin(sin_theta(0, cols_ - 1));
float min_phi = (float)std::asin(sin_phi(0, cols_/2-1)), max_phi = (float) std::asin(sin_phi(rows_ - 1, cols_/2-1));
float min_phi = (float)std::asin(sin_phi(0, cols_/2-1)), max_phi = (float)std::asin(sin_phi(rows_ - 1, cols_/2-1));
std::vector<Point3f> points3d(cols_ * rows_);
R_hat_.create(rows_, cols_);

@ -287,9 +287,9 @@ protected:
errors[1][0] = 0.02f;
errors[1][1] = 0.04f;
break;
default:
method = (RgbdNormals::RGBD_NORMALS_METHOD)-1;
CV_Error(0, "");
default:
method = (RgbdNormals::RGBD_NORMALS_METHOD)-1;
CV_Error(0, "");
}
for (unsigned char j = 0; j < 2; ++j)
@ -513,7 +513,7 @@ protected:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TEST(DISABLED_Rgbd_Normals, compute)
TEST(Rgbd_Normals, compute)
{
cv::rgbd::CV_RgbdNormalsTest test;
test.safe_run();

Loading…
Cancel
Save