ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGrayscaleImageSegmentationVolumeEstimator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkGrayscaleImageSegmentationVolumeEstimator.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 itkGrayscaleImageSegmentationVolumeEstimator_h
18 #define itkGrayscaleImageSegmentationVolumeEstimator_h
19 
21 
22 namespace itk
23 {
24 
42 template <unsigned int NDimension>
43 class ITK_TEMPLATE_EXPORT GrayscaleImageSegmentationVolumeEstimator :
44  public SegmentationVolumeEstimator<NDimension>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_ASSIGN(GrayscaleImageSegmentationVolumeEstimator);
48 
54  using RealObjectType = typename Superclass::RealObjectType;
55 
57  itkNewMacro( Self );
58 
61 
63  static constexpr unsigned int Dimension = NDimension;
64 
67  using SpatialObjectType = typename Superclass::SpatialObjectType;
68  using SpatialObjectPointer = typename Superclass::SpatialObjectPointer;
69  using SpatialObjectConstPointer = typename Superclass::SpatialObjectConstPointer;
70 
72  using InputPixelType = float;
75 
76 protected:
79 
80  void PrintSelf(std::ostream& os, Indent indent) const override;
81 
84  void GenerateData() override;
85 };
86 
87 } // end namespace itk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 # include "itkGrayscaleImageSegmentationVolumeEstimator.hxx"
91 #endif
92 
93 #endif
Class for estimating the volume of a segmentation stored in a SpatialObject.
Light weight base class for most itk classes.
Implementation of an image as spatial object.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::SpatialObjectConstPointer SpatialObjectConstPointer
Class for estimating the volume of a segmentation stored in a SpatialObject that carries a gray-scale...
Templated n-dimensional image class.
Definition: itkImage.h:75