Skip to content

Commit a2ac0de

Browse files
committed
copilot
Signed-off-by: Francis Williams <francis@fwilliams.info>
1 parent 598caf8 commit a2ac0de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tests/GaussianCamerasTest.cu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ TEST(GaussianCamerasTest, DistortedPerspectiveEncapsulatedProjectionAndVJPMatchR
366366
RollingShutterType::NONE,
367367
DistortionModel::OPENCV_RADTAN_5);
368368

369+
using ProjectionVisibility = PerspectiveWithDistortionCamera<float>::ProjectionVisibility;
370+
369371
auto outPixels =
370372
torch::zeros({C, 2}, torch::TensorOptions().dtype(torch::kFloat32).device(torch::kCUDA));
371373
auto outStatuses =
@@ -413,7 +415,7 @@ TEST(GaussianCamerasTest, DistortedPerspectiveEncapsulatedProjectionAndVJPMatchR
413415
distortionAcc[c][6],
414416
distortionAcc[c][7]);
415417

416-
EXPECT_EQ(statusAcc[c], 2);
418+
EXPECT_EQ(static_cast<ProjectionVisibility>(statusAcc[c]), ProjectionVisibility::InImage);
417419
EXPECT_NEAR(pixelAcc[c][0], expectedU, 1.0e-4f);
418420
EXPECT_NEAR(pixelAcc[c][1], expectedV, 1.0e-4f);
419421
}

0 commit comments

Comments
 (0)