| 467 | } |
| 468 | |
| 469 | mitk::Label::AlgorithmType mitk::Label::GetAlgorithmType() const |
| 470 | { |
| 471 | std::string text = this->GetAlgorithmTypeStr(); |
| 472 | |
| 473 | if (text.empty()) |
| 474 | return AlgorithmType::Undefined; |
| 475 | else if (text =="MANUAL") |
| 476 | return AlgorithmType::MANUAL; |
| 477 | else if (text == "SEMIAUTOMATIC") |
| 478 | return AlgorithmType::SEMIAUTOMATIC; |
| 479 | |
| 480 | return AlgorithmType::AUTOMATIC; |
| 481 | } |
| 482 | |
| 483 | std::string mitk::Label::GetAlgorithmTypeStr() const |
| 484 | { |