ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkSegmentationVolumeEstimator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkSegmentationVolumeEstimator.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 __itkSegmentationVolumeEstimator_h
18 #define __itkSegmentationVolumeEstimator_h
19 
20 #include "itkImage.h"
21 #include "itkImageSpatialObject.h"
23 
24 namespace itk
25 {
26 
37 template <unsigned int NDimension>
38 class ITK_EXPORT SegmentationVolumeEstimator : public ProcessObject
39 {
40 public:
46 
51 
53  itkStaticConstMacro(Dimension, unsigned int, NDimension);
54 
60 
64  void SetInput( const SpatialObjectType * inputSpatialObject );
65 
67  typedef double RealType;
69 
74  RealType GetVolume() const;
75  const RealObjectType * GetVolumeOutput() const;
77 
78 
79 protected:
81  virtual ~SegmentationVolumeEstimator();
82  void PrintSelf(std::ostream& os, Indent indent) const;
83 
86  void GenerateData();
87 
88 private:
89  SegmentationVolumeEstimator(const Self&); //purposely not implemented
90  void operator=(const Self&); //purposely not implemented
91 
92 };
93 
94 } // end namespace itk
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 # include "itkSegmentationVolumeEstimator.hxx"
98 #endif
99 
100 #endif
Class for estimating the volume of a segmentation stored in a SpatialObject.
Light weight base class for most itk classes.
SimpleDataObjectDecorator< RealType > RealObjectType
SpatialObjectType::ConstPointer SpatialObjectConstPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Decorates any &quot;simple&quot; data type (data types without smart pointers) with a DataObject API...
Class that generates features (typically images) used as input for a segmentation method...
Implementation of the composite pattern.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Control indentation during Print() invocation.
Definition: itkIndent.h:49