Medical Imaging Interaction Toolkit  2026.06.00
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 
52 
58  MITKPYTHONSEGMENTATION_EXPORT const std::array<InteractionType, 4>& GetAllInteractionTypes();
59 
71  enum class PromptType
72  {
73  Positive,
74  Negative
75  };
76 
87 
93  MITKPYTHONSEGMENTATION_EXPORT const std::array<PromptType, 2>& GetAllPromptTypes();
94 
105  enum class Backend
106  {
107  CUDA,
108  CPU
109  };
110 
121 
126  MITKPYTHONSEGMENTATION_EXPORT const std::array<Backend, 2>& GetAllBackends();
127 
132  enum class ColorIntensity
133  {
134  Muted,
135  Vibrant
136  };
137 
150 }
151 
152 #endif
#define MITKPYTHONSEGMENTATION_EXPORT
MITKPYTHONSEGMENTATION_EXPORT const std::array< PromptType, 2 > & GetAllPromptTypes()
Returns all possible prompt types.
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
Standard RGB color typedef using float components.