Skip to content

Commit

Permalink
Fix DepthGaussianNoise test (#271)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Mar 16, 2021
1 parent 93539bd commit e3d56ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/render_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@ void RenderPassTest::DepthGaussianNoise(const std::string &_renderEngine)
float mz = pointCloudData[pcMid + 2];
float midLeftZ = pointCloudData[pcMid + 2 - pointCloudChannelCount];
float midRightZ = pointCloudData[pcMid + 2 + pointCloudChannelCount];
EXPECT_NEAR(mz, midLeftZ, noiseTol);
EXPECT_NEAR(mz, midRightZ, noiseTol);
// 2 noisy values should be within 2 * 4 sigma
EXPECT_NEAR(mz, midLeftZ, 2*noiseTol);
EXPECT_NEAR(mz, midRightZ, 2*noiseTol);

// Verify Point Cloud RGB values
// The mid point should be blue
Expand Down

0 comments on commit e3d56ad

Please sign in to comment.