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

Function TEST

src/colmap/controllers/reconstruction_clustering_test.cc:122–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122TEST(ReconstructionClustererController, EmptyReconstruction) {
123 SetPRNGSeed(1);
124
125 auto reconstruction = std::make_shared<Reconstruction>();
126 auto reconstruction_manager = std::make_shared<ReconstructionManager>();
127
128 ReconstructionClusteringOptions options;
129 ReconstructionClustererController controller(
130 options, reconstruction, reconstruction_manager);
131 EXPECT_NO_THROW(controller.Run());
132
133 // Empty reconstruction should result in no output reconstructions
134 EXPECT_EQ(reconstruction_manager->Size(), 0);
135}
136
137TEST(ReconstructionClustererController, SingleCluster) {
138 SetPRNGSeed(1);

Callers

nothing calls this directly

Calls 15

SetPRNGSeedFunction · 0.85
SynthesizeDatasetFunction · 0.85
NumRegFramesMethod · 0.80
ImageIdsMethod · 0.80
NumPoints2DMethod · 0.80
RunMethod · 0.45
SizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
FrameMethod · 0.45
ImageMethod · 0.45

Tested by

no test coverage detected