Medical Imaging Interaction Toolkit  2018.4.99-c670e289
Medical Imaging Interaction Toolkit
mitkOtsuTool3D.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 #ifndef MITKOTSUTOOL3D_H
13 #define MITKOTSUTOOL3D_H
14 
17 
18 namespace us
19 {
20  class ModuleResource;
21 }
22 
23 namespace mitk
24 {
25  class Image;
26 
28  {
29  public:
31  itkFactorylessNewMacro(Self);
32  itkCloneMacro(Self);
33 
34  const char *GetName() const override;
35  const char **GetXPM() const override;
36  us::ModuleResource GetIconResource() const override;
37 
38  void Activated() override;
39 
40  itkSetMacro(NumberOfBins, unsigned int);
41  itkGetConstMacro(NumberOfBins, unsigned int);
42 
43  itkSetMacro(NumberOfRegions, unsigned int);
44  itkGetConstMacro(NumberOfRegions, unsigned int);
45 
46  itkSetMacro(UseValley, bool);
47  itkGetConstMacro(UseValley, bool);
48  itkBooleanMacro(UseValley);
49 
51  unsigned int GetMaxNumberOfBins() const;
52 
53  protected:
54  OtsuTool3D() = default;
55  ~OtsuTool3D() = default;
56 
57  LabelSetImage::Pointer ComputeMLPreview(const Image* inputAtTimeStep, TimeStepType timeStep) override;
58 
59  unsigned int m_NumberOfBins = 128;
60  unsigned int m_NumberOfRegions = 2;
61  bool m_UseValley = false;
62  }; // class
63 } // namespace
64 #endif
Base class for any auto segmentation tool that provides a preview of the new segmentation and generat...
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
class ITK_EXPORT Image
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Image class for storing images.
Definition: mitkImage.h:73
std::vcl_size_t TimeStepType
Super-class that provides the functionality of a StateMachine to DataInteractors. ...