ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRegionGrowingSegmentationModule.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkRegionGrowingSegmentationModule.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 itkRegionGrowingSegmentationModule_h
18 #define itkRegionGrowingSegmentationModule_h
19 
20 #include "itkSegmentationModule.h"
21 #include "itkImageSpatialObject.h"
23 
24 namespace itk
25 {
26 
35 template <unsigned int NDimension>
36 class ITK_TEMPLATE_EXPORT RegionGrowingSegmentationModule : public SegmentationModule<NDimension>
37 {
38 public:
39  ITK_DISALLOW_COPY_AND_ASSIGN(RegionGrowingSegmentationModule);
40 
46 
48  itkNewMacro(Self);
49 
52 
54  static constexpr unsigned int Dimension = NDimension;
55 
58  using SpatialObjectType = typename Superclass::SpatialObjectType;
59  using SpatialObjectPointer = typename Superclass::SpatialObjectPointer;
60 
62  using OutputPixelType = float;
63  using FeaturePixelType = float;
66 
70 
73 
74 protected:
77  void PrintSelf(std::ostream& os, Indent indent) const override;
78 
81  void GenerateData () override;
82 
84  void PackOutputImageInOutputSpatialObject( OutputImageType * outputImage );
85 
87  const InputSpatialObjectType * GetInternalInputLandmarks() const;
88 
90  const FeatureImageType * GetInternalFeatureImage() const;
91 
92 private:
93  void ConvertIntensitiesToCenteredRange( OutputImageType * outputImage );
94 };
95 
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "itkRegionGrowingSegmentationModule.hxx"
100 #endif
101 
102 #endif
Light weight base class for most itk classes.
Representation of a Landmark based on the spatial object classes.
Class provides the abstract interface of the segmentation methods.
typename Superclass::SpatialObjectType SpatialObjectType
Class applies a region growing segmentation method.
Implementation of an image as spatial object.
typename Superclass::SpatialObjectPointer SpatialObjectPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Templated n-dimensional image class.
Definition: itkImage.h:75