Skip to content

Commit d06e45a

Browse files
committed
plane test minor
1 parent 64f8cfa commit d06e45a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/3d/test/test_normal.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,11 @@ class RGBD_Plane_generate : public ::testing::TestWithParam<std::tuple<int, bool
666666
{
667667
auto p = GetParam();
668668
idx = std::get<0>(p);
669-
normals = std::get<1>(p);
669+
checkNormals = std::get<1>(p);
670670
}
671671

672672
public:
673-
void run(int idx, int nPlanes, bool checkNormals)
673+
void run(int nPlanes)
674674
{
675675
RNG& rng = cvtest::TS::ptr()->get_rng();
676676
rng.state += idx;
@@ -734,19 +734,19 @@ class RGBD_Plane_generate : public ::testing::TestWithParam<std::tuple<int, bool
734734
}
735735

736736
int idx;
737-
bool normals;
737+
bool checkNormals;
738738
};
739739

740740
TEST_P(RGBD_Plane_generate, compute1plane)
741741
{
742742
// 1 plane, continuous scene, very low error
743-
run(idx, 1, normals);
743+
run(1);
744744
}
745745

746746
TEST_P(RGBD_Plane_generate, compute3planes)
747747
{
748748
// 3 planes, 3 discontinuities, more error expected
749-
run(idx, 3, normals);
749+
run(3);
750750
}
751751

752752
INSTANTIATE_TEST_CASE_P(RGBD_Plane, RGBD_Plane_generate, ::testing::Combine(::testing::Range(0, 10),

0 commit comments

Comments
 (0)