1 #include <catch2/catch_all.hpp>
2 #include <catch2/catch_test_macros.hpp>
16 monoLeft->setCamera(
"left");
23 stereo->setOutputSize(1280, 720);
25 xout->setStreamName(
"out");
29 monoLeft->out.link(stereo->left);
30 monoRight->
out.
link(stereo->right);
31 stereo->depth.link(pointcloud->inputDepth);
32 pointcloud->outputPointCloud.link(xout->input);
41 for(
int i = 0; i < 10; ++i) {
43 REQUIRE(pcl !=
nullptr);
44 REQUIRE(pcl->getWidth() == 1280);
45 REQUIRE(pcl->getHeight() == 720);
46 REQUIRE(pcl->getPoints().size() == 1280UL * 720UL);
47 REQUIRE(pcl->getMinX() < 0.0f);
48 REQUIRE(pcl->getMaxX() > 0.0f);
49 REQUIRE(pcl->getMinY() < 0.0f);
50 REQUIRE(pcl->getMaxY() > 0.0f);
58 for(
int i = 0; i < 10; ++i) {
60 REQUIRE(pcl !=
nullptr);
61 REQUIRE(pcl->getWidth() == 1280);
62 REQUIRE(pcl->getHeight() == 720);
63 REQUIRE(pcl->getPoints().size() < 1280UL * 720UL);
64 REQUIRE(pcl->getMinX() < 0.0f);
65 REQUIRE(pcl->getMaxX() > 0.0f);
66 REQUIRE(pcl->getMinY() < 0.0f);
67 REQUIRE(pcl->getMaxY() > 0.0f);
68 REQUIRE(pcl->getMinZ() > 0.0f);