ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkAnisotropicDiffusionImageFilter.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 __itkAnisotropicDiffusionImageFilter_h
19 #define __itkAnisotropicDiffusionImageFilter_h
20 
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
72 template< class TInputImage, class TOutputImage >
74  public DenseFiniteDifferenceImageFilter< TInputImage, TOutputImage >
75 {
76 public:
82 
86 
88  typedef typename Superclass::InputImageType InputImageType;
89  typedef typename Superclass::OutputImageType OutputImageType;
90  typedef typename Superclass::UpdateBufferType UpdateBufferType;
91 
94  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
95 
98  typedef typename Superclass::PixelType PixelType;
100 
102  itkSetMacro(TimeStep, TimeStepType);
103  itkGetConstMacro(TimeStep, TimeStepType);
105 
108  itkSetMacro(ConductanceParameter, double);
109  itkGetConstMacro(ConductanceParameter, double);
111 
114  itkSetMacro(ConductanceScalingUpdateInterval, unsigned int);
115  itkGetConstMacro(ConductanceScalingUpdateInterval, unsigned int);
117 
120  itkSetMacro(ConductanceScalingParameter, double);
121  itkGetConstMacro(ConductanceScalingParameter, double);
123 
131  void SetFixedAverageGradientMagnitude(double a)
132  {
133  m_FixedAverageGradientMagnitude = a;
134  this->Modified();
135  m_GradientMagnitudeIsFixed = true;
136  }
138 
139  itkGetConstMacro(FixedAverageGradientMagnitude, double);
140 protected:
143  void PrintSelf(std::ostream & os, Indent indent) const;
144 
147  // virtual bool Halt();
148 
150  virtual void InitializeIteration();
151 
153 private:
154  AnisotropicDiffusionImageFilter(const Self &); //purposely not implemented
155  void operator=(const Self &); //purposely not implemented
156 
161 
163 };
164 } // end namspace itk
165 
166 #ifndef ITK_MANUAL_INSTANTIATION
167 #include "itkAnisotropicDiffusionImageFilter.hxx"
168 #endif
169 
170 #endif
171