Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkBinaryThresholdTool.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 mitkBinaryThresholdTool_h
14 #define mitkBinaryThresholdTool_h
15 
18 
19 namespace us
20 {
21  class ModuleResource;
22 }
23 
24 namespace mitk
25 {
37  {
38  public:
39 
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
43 
46 
48  const char *GetName() const override;
49 
54  virtual void SetThresholdValue(double value);
55 
56  protected:
57  BinaryThresholdTool(); // purposely hidden
59  };
60 
61 } // namespace
62 
63 #endif
#define MITKSEGMENTATION_EXPORT
Base class for binary threshold segmentation tools.
Single-threshold segmentation tool for interactive segmentation.
mitkClassMacro(BinaryThresholdTool, BinaryThresholdBaseTool)
const char * GetName() const override
Returns the display name of this tool ("Threshold").
virtual void SetThresholdValue(double value)
Sets the single threshold value.
us::ModuleResource GetIconResource() const override
Returns the icon resource for this tool's button.
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.
Find image slices visible on a given plane.