| 182 | } |
| 183 | |
| 184 | Label::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 | |
| 193 | MultiLabelSegmentation::Pointer LoadSegmentationOrInitializeFromImage(const std::string& path) |
| 194 | { |
no outgoing calls
no test coverage detected