ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkCurvatureFlowImageFilter.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 __itkCurvatureFlowImageFilter_h
19 #define __itkCurvatureFlowImageFilter_h
20 
23 
24 namespace itk
25 {
89 template< class TInputImage, class TOutputImage >
90 class ITK_EXPORT CurvatureFlowImageFilter:
91  public DenseFiniteDifferenceImageFilter< TInputImage, TOutputImage >
92 {
93 public:
99 
101  itkNewMacro(Self);
102 
104  itkTypeMacro(CurvatureFlowImageFilter,
106 
108  typedef typename Superclass::InputImageType InputImageType;
109 
111  typedef typename Superclass::OutputImageType OutputImageType;
112  typedef typename OutputImageType::Pointer OutputImagePointer;
113 
117 
121 
124  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
125 
128  typedef typename Superclass::PixelType PixelType;
129 
132 
134  itkSetMacro(TimeStep, TimeStepType);
135 
137  itkGetConstMacro(TimeStep, TimeStepType);
138 
139 #ifdef ITK_USE_CONCEPT_CHECKING
140 
141  itkConceptMacro( DoubleConvertibleToOutputCheck,
143  itkConceptMacro( OutputConvertibleToDoubleCheck,
145  itkConceptMacro( OutputDivisionOperatorsCheck,
147  itkConceptMacro( DoubleOutputMultiplyOperatorCheck,
149  itkConceptMacro( IntOutputMultiplyOperatorCheck,
151  itkConceptMacro( OutputLessThanDoubleCheck,
153  itkConceptMacro( OutputDoubleAdditiveOperatorsCheck,
155 
157 #endif
158 
159 protected:
162  void PrintSelf(std::ostream & os, Indent indent) const;
163 
166  virtual bool Halt()
167  {
168  if ( this->GetElapsedIterations() == this->GetNumberOfIterations() )
169  {
170  return true;
171  }
172  else
173  {
174  return false;
175  }
176  }
178 
181  virtual void InitializeIteration();
182 
186  virtual void EnlargeOutputRequestedRegion(DataObject *);
187 
191  virtual void GenerateInputRequestedRegion();
192 
193 private:
194  CurvatureFlowImageFilter(const Self &); //purposely not implemented
195  void operator=(const Self &); //purposely not implemented
196 
198 };
199 } // end namspace itk
200 
201 #ifndef ITK_MANUAL_INSTANTIATION
202 #include "itkCurvatureFlowImageFilter.hxx"
203 #endif
204 
205 #endif
206