Skip to content

Commit 0b348ea

Browse files
committed
RGBD: enabled normals test, removed some tabs
1 parent 9c41393 commit 0b348ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/rgbd/src/normal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)
527527

528528
// Get the mapping function for SRI
529529
float min_theta = (float)std::asin(sin_theta(0, 0)), max_theta = (float)std::asin(sin_theta(0, cols_ - 1));
530-
float min_phi = (float)std::asin(sin_phi(0, cols_/2-1)), max_phi = (float) std::asin(sin_phi(rows_ - 1, cols_/2-1));
530+
float min_phi = (float)std::asin(sin_phi(0, cols_/2-1)), max_phi = (float)std::asin(sin_phi(rows_ - 1, cols_/2-1));
531531

532532
std::vector<Point3f> points3d(cols_ * rows_);
533533
R_hat_.create(rows_, cols_);

modules/rgbd/test/test_normal.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ class CV_RgbdNormalsTest: public cvtest::BaseTest
287287
errors[1][0] = 0.02f;
288288
errors[1][1] = 0.04f;
289289
break;
290-
default:
291-
method = (RgbdNormals::RGBD_NORMALS_METHOD)-1;
292-
CV_Error(0, "");
290+
default:
291+
method = (RgbdNormals::RGBD_NORMALS_METHOD)-1;
292+
CV_Error(0, "");
293293
}
294294

295295
for (unsigned char j = 0; j < 2; ++j)
@@ -513,7 +513,7 @@ class CV_RgbdPlaneTest: public cvtest::BaseTest
513513

514514
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
515515

516-
TEST(DISABLED_Rgbd_Normals, compute)
516+
TEST(Rgbd_Normals, compute)
517517
{
518518
cv::rgbd::CV_RgbdNormalsTest test;
519519
test.safe_run();

0 commit comments

Comments
 (0)