ITK  4.2.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,
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,
67 
69  itkStaticConstMacro(NumberOfSmoothingFilters, unsigned int,
71 
76  typedef float InternalRealType;
77  typedef Image<
80 
85  typedef NthElementImageAdaptor< TOutputImage,
87 
89 
95 
101 
106 
109  typedef std::vector< GaussianFilterPointer > GaussianFiltersArray;
110 
114 
116  typedef typename TOutputImage::Pointer OutputImagePointer;
117 
119  typedef TOutputImage OutputImageType;
120  typedef typename OutputImageType::PixelType OutputPixelType;
122 
125 
127  itkNewMacro(Self);
128 
130  void SetSigma(RealType sigma);
131 
135  void SetNormalizeAcrossScale(bool normalizeInScaleSpace);
136  itkGetConstMacro(NormalizeAcrossScale, bool);
138 
144  virtual void GenerateInputRequestedRegion()
146 
147 #ifdef ITK_USE_CONCEPT_CHECKING
148 
149  itkConceptMacro( InputHasNumericTraitsCheck,
151  itkConceptMacro( OutputHasPixelTraitsCheck,
153 
155 #endif
156 protected:
157 
160  void PrintSelf(std::ostream & os, Indent indent) const;
161 
163  void GenerateData(void);
164 
165  // Override since the filter produces the entire dataset
166  void EnlargeOutputRequestedRegion(DataObject *output);
167 
168 private:
169 
170  HessianRecursiveGaussianImageFilter(const Self &); //purposely not implemented
171  void operator=(const Self &); //purposely not implemented
172 
177 
180 };
181 } // end namespace itk
182 
183 #ifndef ITK_MANUAL_INSTANTIATION
184 #include "itkHessianRecursiveGaussianImageFilter.hxx"
185 #endif
186 
187 #endif
188