MCPcopy Create free account
hub / github.com/PDAL/PDAL / TEST

Function TEST

test/unit/EigenTest.cpp:86–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86TEST(EigenTest, PointViewToEigen)
87{
88 PointTable table;
89 table.layout()->registerDim(Dimension::Id::X);
90 table.layout()->registerDim(Dimension::Id::Y);
91 table.layout()->registerDim(Dimension::Id::Z);
92 PointView pointView(table);
93 pointView.setField(Dimension::Id::X, 0, 1.0);
94 pointView.setField(Dimension::Id::Y, 0, 2.0);
95 pointView.setField(Dimension::Id::Z, 0, 3.0);
96 Eigen::MatrixXd expected(1, 3);
97 expected << 1.0, 2.0, 3.0;
98 Eigen::MatrixXd actual = math::pointViewToEigen(pointView);
99 ASSERT_EQ(1, actual.rows());
100 ASSERT_EQ(3, actual.cols());
101 EXPECT_EQ(expected, actual);
102}
103
104TEST(EigenTest, ComputeValues)
105{

Callers

nothing calls this directly

Calls 15

gradXFunction · 0.85
gradYFunction · 0.85
dilateDiamondFunction · 0.85
erodeDiamondFunction · 0.85
check_boundsFunction · 0.85
demeanPointViewFunction · 0.85
computeCentroidFunction · 0.85
registerDimMethod · 0.80
rowsMethod · 0.80
calculateBoundsMethod · 0.80
makeTestViewFunction · 0.70
pointViewToEigenFunction · 0.50

Tested by

no test coverage detected