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

Function CreateTestBitmap

src/colmap/controllers/image_reader_test.cc:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace {
44
45Bitmap CreateTestBitmap(bool as_rgb) {
46 Bitmap bitmap(1, 3, as_rgb);
47 bitmap.SetPixel(0, 0, BitmapColor<uint8_t>(1));
48 bitmap.SetPixel(1, 0, BitmapColor<uint8_t>(2));
49 bitmap.SetPixel(2, 0, BitmapColor<uint8_t>(3));
50 return bitmap;
51}
52
53class ParameterizedImageReaderTests
54 : public ::testing::TestWithParam<std::tuple</*num_images=*/int,

Callers 1

TEST_PFunction · 0.70

Calls 1

SetPixelMethod · 0.80

Tested by

no test coverage detected