ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSegmentationModule.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkSegmentationModule.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 itkSegmentationModule_h
18 #define itkSegmentationModule_h
19 
20 #include "itkProcessObject.h"
21 #include "itkImage.h"
22 #include "itkDataObjectDecorator.h"
23 #include "itkSpatialObject.h"
24 
25 namespace itk
26 {
27 
39 template <unsigned int NDimension>
40 class ITK_TEMPLATE_EXPORT SegmentationModule : public ProcessObject
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_ASSIGN(SegmentationModule);
44 
50 
52  itkNewMacro(Self);
53 
55  itkTypeMacro(SegmentationModule, ProcessObject);
56 
58  static constexpr unsigned int Dimension = NDimension;
59 
64 
67  void SetInput( const SpatialObjectType * input );
68  const SpatialObjectType * GetInput() const;
70 
73  void SetFeature( const SpatialObjectType * feature );
74  const SpatialObjectType * GetFeature() const;
76 
78  const SpatialObjectType * GetOutput() const;
79 
82  unsigned int GetExpectedNumberOfFeatures() const;
83 
84 protected:
86  ~SegmentationModule() override;
87  void PrintSelf(std::ostream& os, Indent indent) const override;
88 
89  /* Derived classes MUST implement the "void GenerateData ()" method */
90 
93  SpatialObjectType * GetInternalOutput();
94 };
95 
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "itkSegmentationModule.hxx"
100 #endif
101 
102 #endif
typename SpatialObjectType::Pointer SpatialObjectPointer
Light weight base class for most itk classes.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
Class provides the abstract interface of the segmentation methods.
Implementation of the composite pattern.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Control indentation during Print() invocation.
Definition: itkIndent.h:49