ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkSigmoidFeatureGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkSigmoidFeatureGenerator.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 __itkSigmoidFeatureGenerator_h
18 #define __itkSigmoidFeatureGenerator_h
19 
20 #include "itkFeatureGenerator.h"
21 #include "itkImage.h"
22 #include "itkImageSpatialObject.h"
24 #include "itkSigmoidImageFilter.h"
25 
26 namespace itk
27 {
28 
42 template <unsigned int NDimension>
43 class ITK_EXPORT SigmoidFeatureGenerator : public FeatureGenerator<NDimension>
44 {
45 public:
51 
53  itkNewMacro(Self);
54 
57 
59  itkStaticConstMacro(Dimension, unsigned int, NDimension);
60 
63  typedef signed short InputPixelType;
67  typedef typename Superclass::SpatialObjectType SpatialObjectType;
68 
71  void SetInput( const SpatialObjectType * input );
72  const SpatialObjectType * GetInput() const;
74 
77  const SpatialObjectType * GetFeature() const;
78 
80  itkSetMacro( Alpha, double );
81  itkGetMacro( Alpha, double );
83 
85  itkSetMacro( Beta, double );
86  itkGetMacro( Beta, double );
88 
89 protected:
91  virtual ~SigmoidFeatureGenerator();
92  void PrintSelf(std::ostream& os, Indent indent) const;
93 
96  void GenerateData ();
97 
98 private:
99  SigmoidFeatureGenerator(const Self&); //purposely not implemented
100  void operator=(const Self&); //purposely not implemented
101 
102  typedef float OutputPixelType;
104 
106 
107  typedef SigmoidImageFilter<
110 
112 
113  double m_Alpha;
114  double m_Beta;
115 };
116 
117 } // end namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 # include "itkSigmoidFeatureGenerator.hxx"
121 #endif
122 
123 #endif
Light weight base class for most itk classes.
SigmoidImageFilter< InputImageType, OutputImageType > SigmoidFilterType
SigmoidFilterType::Pointer SigmoidFilterPointer
FeatureGenerator< NDimension > Superclass
Image< InputPixelType, Dimension > InputImageType
Image< OutputPixelType, Dimension > OutputImageType
Superclass::SpatialObjectType SpatialObjectType
ImageSpatialObject< NDimension, InputPixelType > InputImageSpatialObjectType
ImageSpatialObject< NDimension, OutputPixelType > OutputImageSpatialObjectType
Computes the sigmoid function pixel-wise.
InputImageSpatialObjectType::Pointer InputImageSpatialObjectPointer
SmartPointer< const Self > ConstPointer
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)
Protected method for setting indexed and named inputs.
Generates a feature image by computing the Sigmoid intensity transformation.
Implementation of an image as spatial object.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Templated n-dimensional image class.
Definition: itkImage.h:75