ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkGradientMagnitudeSigmoidFeatureGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkGradientMagnitudeSigmoidFeatureGenerator.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 __itkGradientMagnitudeSigmoidFeatureGenerator_h
18 #define __itkGradientMagnitudeSigmoidFeatureGenerator_h
19 
20 #include "itkFeatureGenerator.h"
21 #include "itkImage.h"
22 #include "itkImageSpatialObject.h"
24 #include "itkSigmoidImageFilter.h"
25 
26 namespace itk
27 {
28 
41 template <unsigned int NDimension>
42 class ITK_EXPORT GradientMagnitudeSigmoidFeatureGenerator : public FeatureGenerator<NDimension>
43 {
44 public:
50 
52  itkNewMacro(Self);
53 
56 
58  itkStaticConstMacro(Dimension, unsigned int, NDimension);
59 
62  typedef signed short InputPixelType;
66  typedef typename Superclass::SpatialObjectType SpatialObjectType;
67 
70  void SetInput( const SpatialObjectType * input );
71  const SpatialObjectType * GetInput() const;
73 
76  const SpatialObjectType * GetFeature() const;
77 
80  itkSetMacro( Sigma, double );
81  itkGetMacro( Sigma, double );
83 
85  itkSetMacro( Alpha, double );
86  itkGetMacro( Alpha, double );
88 
90  itkSetMacro( Beta, double );
91  itkGetMacro( Beta, double );
93 
94 protected:
97  void PrintSelf(std::ostream& os, Indent indent) const;
98 
101  void GenerateData ();
102 
103 private:
104  GradientMagnitudeSigmoidFeatureGenerator(const Self&); //purposely not implemented
105  void operator=(const Self&); //purposely not implemented
106 
107  typedef float InternalPixelType;
109 
112 
114 
118 
119  typedef SigmoidImageFilter<
122 
125 
126  double m_Sigma;
127  double m_Alpha;
128  double m_Beta;
129 };
130 
131 } // end namespace itk
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 # include "itkGradientMagnitudeSigmoidFeatureGenerator.hxx"
135 #endif
136 
137 #endif
Computes the Magnitude of the Gradient of an image by convolution with the first derivative of a Gaus...
Generates a feature image by computing the gradient magnitude of the input image and applying a sigmo...
Light weight base class for most itk classes.
ImageSpatialObject< NDimension, InputPixelType > InputImageSpatialObjectType
Computes the sigmoid function pixel-wise.
Class that generates features (typically images) used as input for a segmentation method...
GradientMagnitudeRecursiveGaussianImageFilter< InputImageType, InternalImageType > GradientFilterType
Implementation of the composite pattern.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Implementation of an image as spatial object.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
ImageSpatialObject< NDimension, OutputPixelType > OutputImageSpatialObjectType
Templated n-dimensional image class.
Definition: itkImage.h:75
SigmoidImageFilter< InternalImageType, OutputImageType > SigmoidFilterType