Medical Imaging Interaction Toolkit  2025.12.02
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 {
36  {
37  public:
38 
40  itkFactorylessNewMacro(Self);
41  itkCloneMacro(Self);
42 
43  const char **GetXPM() const override;
45  const char *GetName() const override;
46 
47  virtual void SetThresholdValue(double value);
48 
49  protected:
50  BinaryThresholdTool(); // purposely hidden
52  };
53 
54 } // namespace
55 
56 #endif
#define MITKSEGMENTATION_EXPORT
Base class for binary threshold tools.
Calculates the segmented volumes for binary images.
mitkClassMacro(BinaryThresholdTool, BinaryThresholdBaseTool)
const char * GetName() const override
Returns the name of this tool. Make it short!
const char ** GetXPM() const override
Returns an icon in the XPM format.
virtual void SetThresholdValue(double value)
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
Find image slices visible on a given plane.