ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkConnectedThresholdSegmentationModule.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkConnectedThresholdSegmentationModule.h
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef itkConnectedThresholdSegmentationModule_h
18 #define itkConnectedThresholdSegmentationModule_h
19 
22 
23 namespace itk
24 {
25 
35 template <unsigned int NDimension>
36 class ITK_TEMPLATE_EXPORT ConnectedThresholdSegmentationModule :
37  public RegionGrowingSegmentationModule<NDimension>
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_ASSIGN(ConnectedThresholdSegmentationModule);
41 
47 
49  itkNewMacro(Self);
50 
53 
55  static constexpr unsigned int Dimension = NDimension;
56 
59  using FeatureImageType = typename Superclass::FeatureImageType;
60  using OutputImageType = typename Superclass::OutputImageType;
61  using InputSpatialObjectType = typename Superclass::InputSpatialObjectType;
62 
64  itkSetMacro( LowerThreshold, double );
65  itkGetMacro( LowerThreshold, double );
66  itkSetMacro( UpperThreshold, double );
67  itkGetMacro( UpperThreshold, double );
69 
70 protected:
73  void PrintSelf(std::ostream& os, Indent indent) const override;
74 
77  void GenerateData () override;
78 
79 private:
82 
83 };
84 
85 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 # include "itkConnectedThresholdSegmentationModule.hxx"
89 #endif
90 
91 #endif
Light weight base class for most itk classes.
This class applies the connected threshold region growing segmentation method.
Class applies a region growing segmentation method.
typename Superclass::InputSpatialObjectType InputSpatialObjectType
Control indentation during Print() invocation.
Definition: itkIndent.h:49