Orfeo Toolbox  4.0
itkRecursiveGaussianImageFilter.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 __itkRecursiveGaussianImageFilter_h
19 #define __itkRecursiveGaussianImageFilter_h
20 
22 
23 namespace itk
24 {
61 template< typename TInputImage, typename TOutputImage = TInputImage >
63  public RecursiveSeparableImageFilter< TInputImage, TOutputImage >
64 {
65 public:
71 
72  typedef typename Superclass::RealType RealType;
74 
76  itkNewMacro(Self);
77 
80 
85  itkGetConstMacro(Sigma, ScalarRealType);
86  itkSetMacro(Sigma, ScalarRealType);
87 
92 
94  typedef TOutputImage OutputImageType;
95 
135  itkSetMacro(NormalizeAcrossScale, bool);
136  itkGetConstMacro(NormalizeAcrossScale, bool);
137 
144  itkSetMacro(Order, OrderEnumType);
145  itkGetConstMacro(Order, OrderEnumType);
146 
148  void SetZeroOrder();
149 
151  void SetFirstOrder();
152 
154  void SetSecondOrder();
155 
156 protected:
159  void PrintSelf(std::ostream & os, Indent indent) const;
160 
165  virtual void SetUp(ScalarRealType spacing);
166 
167  /* See superclass for doxygen. This method adds the additional check
168  * that sigma is greater than zero. */
169  virtual void VerifyPreconditions();
170 
171 private:
172  RecursiveGaussianImageFilter(const Self &); //purposely not implemented
173  void operator=(const Self &); //purposely not implemented
174 
179  ScalarRealType & N0, ScalarRealType & N1,
180  ScalarRealType & N2, ScalarRealType & N3,
181  ScalarRealType & SN, ScalarRealType & DN, ScalarRealType & EN);
182 
186  ScalarRealType & SD, ScalarRealType & DD, ScalarRealType & ED);
187 
190  void ComputeRemainingCoefficients(bool symmetric);
191 
194 
197 
199 };
200 } // end namespace itk
201 
202 #ifndef ITK_MANUAL_INSTANTIATION
204 #endif
205 
206 #endif

Generated at Sat Mar 8 2014 15:25:59 for Orfeo Toolbox with doxygen 1.8.3.1