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

Function TEST

src/colmap/mvs/depth_map_test.cc:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace {
37
38TEST(DepthMap, Empty) {
39 DepthMap depth_map;
40 EXPECT_EQ(depth_map.GetWidth(), 0);
41 EXPECT_EQ(depth_map.GetHeight(), 0);
42 EXPECT_EQ(depth_map.GetDepth(), 1);
43 EXPECT_EQ(depth_map.GetDepthMin(), -1);
44 EXPECT_EQ(depth_map.GetDepthMax(), -1);
45}
46
47TEST(DepthMap, NonEmpty) {
48 DepthMap depth_map(1, 2, 0, 1);

Callers

nothing calls this directly

Calls 14

GetDepthMinMethod · 0.80
GetDepthMaxMethod · 0.80
IsRGBMethod · 0.80
GetPixelMethod · 0.80
GetWidthMethod · 0.45
GetHeightMethod · 0.45
GetDepthMethod · 0.45
RescaleMethod · 0.45
DownsizeMethod · 0.45
FillMethod · 0.45
SetMethod · 0.45
ToBitmapMethod · 0.45

Tested by

no test coverage detected