ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLesionSegmentationMethod.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkLesionSegmentationMethod.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 itkLesionSegmentationMethod_h
18 #define itkLesionSegmentationMethod_h
19 
20 #include "itkProcessObject.h"
21 #include "itkImage.h"
22 #include "itkDataObjectDecorator.h"
23 #include "itkSpatialObject.h"
24 #include "itkFeatureGenerator.h"
25 #include "itkSegmentationModule.h"
26 #include "itkProgressAccumulator.h"
27 
28 namespace itk
29 {
30 
42 template <unsigned int NDimension>
43 class ITK_TEMPLATE_EXPORT LesionSegmentationMethod : public ProcessObject
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_ASSIGN(LesionSegmentationMethod);
47 
53 
55  itkNewMacro(Self);
56 
59 
61  static constexpr unsigned int Dimension = NDimension;
62 
68 
70  itkSetObjectMacro( RegionOfInterest, SpatialObjectType );
71  itkGetConstObjectMacro( RegionOfInterest, SpatialObjectType );
73 
77  itkSetConstObjectMacro( InitialSegmentation, SpatialObjectType );
78  itkGetConstObjectMacro( InitialSegmentation, SpatialObjectType );
80 
84 
89  void AddFeatureGenerator( FeatureGeneratorType * generator );
90 
95 
96 
101  itkSetObjectMacro( SegmentationModule, SegmentationModuleType );
102 
103 
104 protected:
106  ~LesionSegmentationMethod() override;
107  void PrintSelf(std::ostream& os, Indent indent) const override;
108 
111  void GenerateData() override;
112 
113 private:
116 
118  using FeatureGeneratorArrayType = std::vector< FeatureGeneratorPointer >;
119  using FeatureGeneratorIterator = typename FeatureGeneratorArrayType::iterator;
120  using FeatureGeneratorConstIterator = typename FeatureGeneratorArrayType::const_iterator;
121 
123 
125 
127 
128 
130  void UpdateAllFeatureGenerators();
131 
135  void VerifyNumberOfAvailableFeaturesMatchedExpectations() const;
136 
138  void ConnectFeaturesToSegmentationModule();
139 
140  void ExecuteSegmentationModule();
141 
142 };
143 
144 } // end namespace itk
145 
146 #ifndef ITK_MANUAL_INSTANTIATION
147 # include "itkLesionSegmentationMethod.hxx"
148 #endif
149 
150 #endif
FeatureGeneratorArrayType m_FeatureGenerators
SegmentationModulePointer m_SegmentationModule
Light weight base class for most itk classes.
SpatialObjectConstPointer m_InitialSegmentation
Class for coordinating components of a segmentation framework.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename SpatialObjectType::Pointer SpatialObjectPointer
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
Class provides the abstract interface of the segmentation methods.
Class that generates features (typically images) used as input for a segmentation method...
Implementation of the composite pattern.
std::vector< FeatureGeneratorPointer > FeatureGeneratorArrayType
typename FeatureGeneratorArrayType::iterator FeatureGeneratorIterator
typename SpatialObjectType::ConstPointer SpatialObjectConstPointer
ProgressAccumulator::Pointer m_ProgressAccumulator
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename FeatureGeneratorArrayType::const_iterator FeatureGeneratorConstIterator
typename FeatureGeneratorType::Pointer FeatureGeneratorPointer
typename SegmentationModuleType::Pointer SegmentationModulePointer
SpatialObjectConstPointer m_RegionOfInterest