Medical Imaging Interaction Toolkit  2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
mitknnInteractiveEnums.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitknnInteractiveEnums_h
14 #define mitknnInteractiveEnums_h
15 
16 #include <mitkColorProperty.h>
18 
19 namespace mitk::nnInteractive
20 {
34  enum class InteractionType
35  {
36  Point,
37  Box,
38  Scribble,
39  Lasso
40  };
41 
45 
48  MITKPYTHONSEGMENTATION_EXPORT const std::array<InteractionType, 4>& GetAllInteractionTypes();
49 
55  enum class InteractionMode
56  {
57  Default,
59  };
60 
72  enum class PromptType
73  {
74  Positive,
75  Negative
76  };
77 
80  MITKPYTHONSEGMENTATION_EXPORT const std::string& GetPromptTypeAsString(PromptType promptType);
81 
84  MITKPYTHONSEGMENTATION_EXPORT const std::array<PromptType, 2>& GetAllPromptTypes();
85 
96  enum class Backend
97  {
98  CUDA,
99  CPU
100  };
101 
104  MITKPYTHONSEGMENTATION_EXPORT const std::string& GetBackendAsString(Backend backend);
105 
108  MITKPYTHONSEGMENTATION_EXPORT const std::array<Backend, 2>& GetAllBackends();
109 
114  enum class ColorIntensity
115  {
116  Muted,
117  Vibrant
118  };
119 
125  MITKPYTHONSEGMENTATION_EXPORT const Color& GetColor(PromptType promptType, ColorIntensity colorIntensity);
126 }
127 
128 #endif
mitk::nnInteractive::Backend::CPU
@ CPU
mitk::nnInteractive::ColorIntensity::Muted
@ Muted
mitk::nnInteractive::Backend::CUDA
@ CUDA
mitk::nnInteractive::GetPromptTypeAsString
const MITKPYTHONSEGMENTATION_EXPORT std::string & GetPromptTypeAsString(PromptType promptType)
Converts a PromptType to a corresponding string representation.
mitk::nnInteractive::InteractionMode
InteractionMode
Specifies the interaction modes for interactors.
Definition: mitknnInteractiveEnums.h:55
mitk::nnInteractive::PromptType::Negative
@ Negative
mitk::nnInteractive
Definition: mitknnInteractiveBoxInteractor.h:23
mitk::nnInteractive::InteractionType::Point
@ Point
mitk::nnInteractive::GetInteractionTypeAsString
const MITKPYTHONSEGMENTATION_EXPORT std::string & GetInteractionTypeAsString(InteractionType interactionType)
Converts an InteractionType to a corresponding string representation.
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition: mitkColorProperty.h:38
mitk::nnInteractive::ColorIntensity
ColorIntensity
Specifies the intensity of the colors used in an interaction.
Definition: mitknnInteractiveEnums.h:114
mitk::nnInteractive::Backend
Backend
Specifies the computation backends available for nnInteractive.
Definition: mitknnInteractiveEnums.h:96
mitk::nnInteractive::PromptType
PromptType
Specifies the types of prompts used in nnInteractive.
Definition: mitknnInteractiveEnums.h:72
mitk::nnInteractive::InteractionType::Lasso
@ Lasso
mitk::nnInteractive::GetAllBackends
const MITKPYTHONSEGMENTATION_EXPORT std::array< Backend, 2 > & GetAllBackends()
Returns all possible backend types.
mitk::nnInteractive::InteractionType
InteractionType
Specifies the types of interactions available.
Definition: mitknnInteractiveEnums.h:34
mitk::nnInteractive::InteractionMode::Default
@ Default
MITKPYTHONSEGMENTATION_EXPORT
#define MITKPYTHONSEGMENTATION_EXPORT
Definition: MitkPythonSegmentationExports.h:15
mitk::nnInteractive::ColorIntensity::Vibrant
@ Vibrant
mitk::nnInteractive::InteractionType::Box
@ Box
mitk::nnInteractive::GetBackendAsString
const MITKPYTHONSEGMENTATION_EXPORT std::string & GetBackendAsString(Backend backend)
Converts a Backend type to a corresponding string representation.
mitk::nnInteractive::InteractionMode::BlockLMBDisplayInteraction
@ BlockLMBDisplayInteraction
mitk::nnInteractive::GetAllInteractionTypes
const MITKPYTHONSEGMENTATION_EXPORT std::array< InteractionType, 4 > & GetAllInteractionTypes()
Returns all possible interaction types.
mitk::nnInteractive::GetColor
const MITKPYTHONSEGMENTATION_EXPORT Color & GetColor(PromptType promptType, ColorIntensity colorIntensity)
Returns the color associated with a specific prompt type and color intensity.
mitk::nnInteractive::GetAllPromptTypes
const MITKPYTHONSEGMENTATION_EXPORT std::array< PromptType, 2 > & GetAllPromptTypes()
Returns all possible prompt types.
mitkColorProperty.h
MitkPythonSegmentationExports.h
mitk::nnInteractive::InteractionType::Scribble
@ Scribble
mitk::nnInteractive::PromptType::Positive
@ Positive