Skip to content

Commit 8ac7638

Browse files
author
Chris Sweeney
committed
Fixed broken unit test for filter translations line test
Change-Id: Icd80ace3fdc7fc8e9074e4219e44be34577f17d4
1 parent 168f997 commit 8ac7638

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/theia/sfm/filter_view_pairs_from_relative_translation_test.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ TEST(FilterViewPairsFromRelativeTranslation, LineTest) {
190190
const ViewIdPair invalid_view_pair(0, 3);
191191
TwoViewInfo invalid_info;
192192
// Force the bad translations to be really bad.
193-
view_pairs[invalid_view_pair].position_2 =
194-
(Vector3d::Random() - Vector3d::Ones()).normalized();
193+
view_pairs[invalid_view_pair].position_2 = Vector3d(-1, -1, -1).normalized();
195194

196195
FilterViewPairsFromRelativeTranslationOptions options;
197196
options.translation_projection_tolerance = 0.1;

0 commit comments

Comments
 (0)