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

Method GetAlgorithmType

Modules/Segmentation/src/Interactions/mitkMonaiLabelTool.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96mitk::Label::AlgorithmType mitk::MonaiLabelTool::GetAlgorithmType() const
97{
98 // The same tool instance runs both auto-segmentation and interactive (deepgrow/deepedit) models, so
99 // the type cannot be a static override: it depends on the currently selected model. Auto models run
100 // with no per-image human input (like nnUNet), hence AUTOMATIC; interactive models are SEMIAUTOMATIC.
101 return (m_RequestParameters && !m_RequestParameters->model.IsInteractive())
102 ? mitk::Label::AlgorithmType::AUTOMATIC
103 : mitk::Label::AlgorithmType::SEMIAUTOMATIC;
104}
105
106void mitk::MonaiLabelTool::OnAddPositivePoint(StateMachineAction *, InteractionEvent *interactionEvent)
107{

Callers

nothing calls this directly

Calls 1

IsInteractiveMethod · 0.80

Tested by

no test coverage detected