MCPcopy Create free account
hub / github.com/alicevision/AliceVision / EMergeMethod_enumToString

Function EMergeMethod_enumToString

src/software/utils/main_sfmMerge.cpp:47–57  ·  view source on GitHub ↗

* @brief Convert an EMergeMethod enum to its corresponding string * @param[in] mergeMethod The given EMergeMethod enum * @return string */

Source from the content-addressed store, hash-verified

45 * @return string
46 */
47std::string EMergeMethod_enumToString(EMergeMethod mergeMethod)
48{
49 switch (mergeMethod)
50 {
51 case EMergeMethod::SIMPLE_COPY:
52 return "simple_copy";
53 case EMergeMethod::FROM_LANDMARKS:
54 return "from_landmarks";
55 }
56 throw std::out_of_range("Invalid EAlignmentMethod enum");
57}
58
59/**
60 * @brief Convert a string to its corresponding EMergeMethod enum

Callers 1

main_sfmMerge.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected