Commit 0b348ea9 authored by Maksim Shabunin's avatar Maksim Shabunin

RGBD: enabled normals test, removed some tabs

parent 9c413930
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment