ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkBinaryThresholdFeatureGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkBinaryThresholdFeatureGenerator.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 itkBinaryThresholdFeatureGenerator_h
18 #define itkBinaryThresholdFeatureGenerator_h
19 
20 #include "itkFeatureGenerator.h"
21 #include "itkImage.h"
22 #include "itkImageSpatialObject.h"
25 
26 namespace itk
27 {
28 
40 template <unsigned int NDimension>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(BinaryThresholdFeatureGenerator);
45 
51 
53  itkNewMacro(Self);
54 
57 
59  static constexpr unsigned int Dimension = NDimension;
60 
63  using InputPixelType = signed short;
68 
70  itkSetMacro( Threshold, double );
71  itkGetMacro( Threshold, double );
73 
74 protected:
77  void PrintSelf(std::ostream& os, Indent indent) const override;
78 
81  void GenerateData () override;
82 
83 private:
84  using OutputPixelType = float;
86 
88 
92 
94 
95  double m_Threshold;
96 };
97 
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 # include "itkBinaryThresholdFeatureGenerator.hxx"
102 #endif
103 
104 #endif
Light weight base class for most itk classes.
typename InputImageSpatialObjectType::Pointer InputImageSpatialObjectPointer
typename Superclass::SpatialObjectType SpatialObjectType
Binarize an input image by thresholding.
SpatialObject< NDimension > SpatialObjectType
Class that generates features (typically images) used as input for a segmentation method...
Image< InputPixelType, Dimension > InputImageType
typename BinaryThresholdFilterType::Pointer BinaryThresholdFilterPointer
Implementation of an image as spatial object.
Generates a feature image by thresholding the input intensities.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, Indent indent) const override
Templated n-dimensional image class.
Definition: itkImage.h:75