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

Method GetAlgorithmType

Modules/Multilabel/src/mitkLabel.cpp:469–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469mitk::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
483std::string mitk::Label::GetAlgorithmTypeStr() const
484{

Callers 8

AddToolUseMethod · 0.95
MergeToolUsesMethod · 0.95
ValidateMethod · 0.45
CompleteMethod · 0.45
TestMergeToolUsesMethod · 0.45

Calls 2

GetAlgorithmTypeStrMethod · 0.95
emptyMethod · 0.45

Tested by 3

TestMergeToolUsesMethod · 0.36