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

Function TEST

src/colmap/sensor/bitmap_test.cc:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58TEST(BitmapColor, Empty) {
59 BitmapColor<uint8_t> color;
60 EXPECT_EQ(color.r, 0);
61 EXPECT_EQ(color.g, 0);
62 EXPECT_EQ(color.b, 0);
63 EXPECT_EQ(color, BitmapColor<uint8_t>(0));
64 EXPECT_EQ(color, BitmapColor<uint8_t>(0, 0, 0));
65}
66
67TEST(BitmapColor, Gray) {
68 BitmapColor<uint8_t> color(5);

Callers

nothing calls this directly

Calls 15

BitmapClass · 0.85
CreateTestDirFunction · 0.85
WriteImageOIIOFunction · 0.85
ChannelsMethod · 0.80
IsRGBMethod · 0.80
IsGreyMethod · 0.80
IsEmptyMethod · 0.80
BitsPerPixelMethod · 0.80
SetPixelMethod · 0.80
GetPixelMethod · 0.80
InterpolateBilinearMethod · 0.80

Tested by

no test coverage detected