Medical Imaging Interaction Toolkit  2025.12.02
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 
81 
84  MITKPYTHONSEGMENTATION_EXPORT const std::array<PromptType, 2>& GetAllPromptTypes();
85 
96  enum class Backend
97  {
98  CUDA,
99  CPU
100  };
101 
105 
108  MITKPYTHONSEGMENTATION_EXPORT const std::array<Backend, 2>& GetAllBackends();
109 
114  enum class ColorIntensity
115  {
116  Muted,
117  Vibrant
118  };
119 
126 }
127 
128 #endif
#define MITKPYTHONSEGMENTATION_EXPORT
MITKPYTHONSEGMENTATION_EXPORT const std::array< PromptType, 2 > & GetAllPromptTypes()
Returns all possible prompt types.
InteractionMode
Specifies the interaction modes for interactors.
MITKPYTHONSEGMENTATION_EXPORT const Color & GetColor(PromptType promptType, ColorIntensity colorIntensity)
Returns the color associated with a specific prompt type and color intensity.
MITKPYTHONSEGMENTATION_EXPORT const std::array< Backend, 2 > & GetAllBackends()
Returns all possible backend types.
MITKPYTHONSEGMENTATION_EXPORT const std::string & GetPromptTypeAsString(PromptType promptType)
Converts a PromptType to a corresponding string representation.
InteractionType
Specifies the types of interactions available.
PromptType
Specifies the types of prompts used in nnInteractive.
MITKPYTHONSEGMENTATION_EXPORT const std::string & GetBackendAsString(Backend backend)
Converts a Backend type to a corresponding string representation.
MITKPYTHONSEGMENTATION_EXPORT const std::string & GetInteractionTypeAsString(InteractionType interactionType)
Converts an InteractionType to a corresponding string representation.
Backend
Specifies the computation backends available for nnInteractive.
ColorIntensity
Specifies the intensity of the colors used in an interaction.
MITKPYTHONSEGMENTATION_EXPORT const std::array< InteractionType, 4 > & GetAllInteractionTypes()
Returns all possible interaction types.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)