MCPcopy Create free account
hub / github.com/danini/magsac / getAvailableTestScenes

Function getAvailableTestScenes

examples/cpp_example.cpp:306–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306std::vector<std::string> getAvailableTestScenes(
307 const SceneType scene_type_,
308 const Dataset dataset_)
309{
310 switch (scene_type_)
311 {
312 case SceneType::EssentialMatrixScene: // Available test scenes for homography estimation
313 switch (dataset_)
314 {
315 case Dataset::strecha:
316 return { "fountain" };
317 }
318
319 case SceneType::HomographyScene: // Available test scenes for homography estimation
320 switch (dataset_)
321 {
322 case Dataset::homogr:
323 return { "LePoint1", "LePoint2", "LePoint3", // "homogr" dataset
324 "graf", "ExtremeZoom", "city",
325 "CapitalRegion", "BruggeTower", "BruggeSquare",
326 "BostonLib", "boat", "adam",
327 "WhiteBoard", "Eiffel", "Brussels",
328 "Boston"};
329 case Dataset::extremeview:
330 return {"extremeview/adam", "extremeview/cafe", "extremeview/cat", // "EVD" (i.e. extremeview) dataset
331 "extremeview/dum", "extremeview/face", "extremeview/fox",
332 "extremeview/girl", "extremeview/graf", "extremeview/grand",
333 "extremeview/index", "extremeview/mag", "extremeview/pkk",
334 "extremeview/shop", "extremeview/there", "extremeview/vin"};
335
336 default:
337 return std::vector<std::string>();
338 }
339
340 case SceneType::FundamentalMatrixScene:
341 switch (dataset_)
342 {
343 case Dataset::kusvod2:
344 return {"corr", "booksh", "box",
345 "castle", "graff", "head",
346 "kampa", "leafs", "plant",
347 "rotunda", "shout", "valbonne",
348 "wall", "wash", "zoom",
349 "Kyoto"};
350 case Dataset::adelaidermf:
351 return { "barrsmith", "bonhall", "bonython",
352 "elderhalla", "elderhallb",
353 "hartley", "johnssonb", "ladysymon",
354 "library", "napiera", "napierb",
355 "nese", "oldclassicswing", "physics",
356 "sene", "unihouse", "unionhouse"};
357 case Dataset::multih:
358 return {"boxesandbooks", "glasscaseb", "stairs"};
359 default:
360 return std::vector<std::string>();
361 }
362 default:
363 return std::vector<std::string>();

Callers 1

runTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected