ITK  4.13.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:
49 
51  itkNewMacro(Self);
52 
55 
57  itkStaticConstMacro(Dimension, unsigned int, NDimension);
58 
61  typedef signed short InputPixelType;
66 
68  itkSetMacro( Threshold, double );
69  itkGetMacro( Threshold, double );
71 
72 protected:
75  void PrintSelf(std::ostream& os, Indent indent) const;
76 
79  void GenerateData ();
80 
81 private:
82  BinaryThresholdFeatureGenerator(const Self&); //purposely not implemented
83  void operator=(const Self&); //purposely not implemented
84 
85  typedef float OutputPixelType;
87 
89 
93 
95 
96  double m_Threshold;
97 };
98 
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 # include "itkBinaryThresholdFeatureGenerator.hxx"
103 #endif
104 
105 #endif
BinaryThresholdFilterType::Pointer BinaryThresholdFilterPointer
Light weight base class for most itk classes.
Image< OutputPixelType, Dimension > OutputImageType
InputImageSpatialObjectType::Pointer InputImageSpatialObjectPointer
ImageSpatialObject< NDimension, InputPixelType > InputImageSpatialObjectType
Binarize an input image by thresholding.
Class that generates features (typically images) used as input for a segmentation method...
SpatialObject< NDimension > SpatialObjectType
ImageSpatialObject< NDimension, OutputPixelType > OutputImageSpatialObjectType
Implementation of an image as spatial object.
Generates a feature image by thresholding the input intensities.
Image< InputPixelType, Dimension > InputImageType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void PrintSelf(std::ostream &os, Indent indent) const
BinaryThresholdImageFilter< InputImageType, OutputImageType > BinaryThresholdFilterType
Templated n-dimensional image class.
Definition: itkImage.h:75