ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkHessianRecursiveGaussianImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkHessianRecursiveGaussianImageFilter_h
19 #define __itkHessianRecursiveGaussianImageFilter_h
20 
23 #include "itkImage.h"
25 #include "itkPixelTraits.h"
26 
27 namespace itk
28 {
41 // NOTE that the typename macro has to be used here in lieu
42 // of "typename" because VC++ doesn't like the typename keyword
43 // on the defaults of template parameters
44 template< typename TInputImage,
45  typename TOutputImage = Image< SymmetricSecondRankTensor<
46  typename NumericTraits< typename TInputImage::PixelType >::RealType,
47  TInputImage::ImageDimension >,
48  TInputImage::ImageDimension > >
50  public ImageToImageFilter< TInputImage, TOutputImage >
51 {
52 public:
58 
60  typedef TInputImage InputImageType;
61  typedef typename TInputImage::PixelType PixelType;
63 
65  itkStaticConstMacro(ImageDimension, unsigned int,
66  TInputImage::ImageDimension);
67 
69  itkStaticConstMacro(NumberOfSmoothingFilters, unsigned int,
70  TInputImage::ImageDimension - 2);
71 
76  typedef float InternalRealType;
79 
84  typedef NthElementImageAdaptor< TOutputImage,
86 
88 
94 
100 
105 
108  typedef std::vector< GaussianFilterPointer > GaussianFiltersArray;
109 
113 
115  typedef typename TOutputImage::Pointer OutputImagePointer;
116 
118  typedef TOutputImage OutputImageType;
119  typedef typename OutputImageType::PixelType OutputPixelType;
121 
124 
126  itkNewMacro(Self);
127 
129  void SetSigma(RealType sigma);
130  RealType GetSigma() const;
132 
136  void SetNormalizeAcrossScale(bool normalizeInScaleSpace);
137  itkGetConstMacro(NormalizeAcrossScale, bool);
139 
145  virtual void GenerateInputRequestedRegion()
147 
148 #ifdef ITK_USE_CONCEPT_CHECKING
149 
150  itkConceptMacro( InputHasNumericTraitsCheck,
152  itkConceptMacro( OutputHasPixelTraitsCheck,
154 
156 #endif
157 
158 protected:
159 
162  void PrintSelf(std::ostream & os, Indent indent) const;
163 
165  void GenerateData(void);
166 
167  // Override since the filter produces the entire dataset
168  void EnlargeOutputRequestedRegion(DataObject *output);
169 
170 private:
171 
172  HessianRecursiveGaussianImageFilter(const Self &); //purposely not implemented
173  void operator=(const Self &); //purposely not implemented
174 
179 
182 };
183 } // end namespace itk
184 
185 #ifndef ITK_MANUAL_INSTANTIATION
186 #include "itkHessianRecursiveGaussianImageFilter.hxx"
187 #endif
188 
189 #endif
190