MCPcopy Create free account
hub / github.com/MITK/MITK / ParseAlgorithmType

Function ParseAlgorithmType

Wrapping/Python/mitk/MultiLabelSegmentation.cpp:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184Label::AlgorithmType ParseAlgorithmType(const std::string& s)
185{
186 if (s == "UNDEFINED") return Label::AlgorithmType::Undefined;
187 if (s == "MANUAL") return Label::AlgorithmType::MANUAL;
188 if (s == "SEMIAUTOMATIC") return Label::AlgorithmType::SEMIAUTOMATIC;
189 if (s == "AUTOMATIC") return Label::AlgorithmType::AUTOMATIC;
190 throw py::value_error("Unknown algorithm type string: " + s);
191}
192
193MultiLabelSegmentation::Pointer LoadSegmentationOrInitializeFromImage(const std::string& path)
194{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected