ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkExponentialDeformationFieldImageFilter.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 __itkExponentialDeformationFieldImageFilter_h
19 #define __itkExponentialDeformationFieldImageFilter_h
20 
21 #include "itkDivideImageFilter.h"
22 #include "itkCastImageFilter.h"
25 #include "itkAddImageFilter.h"
26 
27 #ifndef ITKV3_COMPATIBILITY
28 #error "This file is only valid when ITKV3_COMPATIBILITY is turned on. Users are encouraged to convert to itkExponentialDisplacementFieldImageFilter.h in ITKv4"
29 #endif
30 
31 namespace itk
32 {
67 template< class TInputImage, class TOutputImage >
69  public ImageToImageFilter< TInputImage, TOutputImage >
70 {
71 public:
77 
79  itkNewMacro(Self);
80 
83 
85  typedef TInputImage InputImageType;
86  typedef typename InputImageType::Pointer InputImagePointer;
87  typedef typename InputImageType::ConstPointer InputImageConstPointer;
88  typedef typename InputImageType::PixelType InputPixelType;
89  typedef typename InputPixelType::RealValueType InputPixelRealValueType;
90 
91  typedef TOutputImage OutputImageType;
92  typedef typename OutputImageType::Pointer OutputImagePointer;
93  typedef typename OutputImageType::PixelType OutputPixelType;
94 
96  itkSetMacro(MaximumNumberOfIterations, unsigned int);
97  itkGetConstMacro(MaximumNumberOfIterations, unsigned int);
99 
104  itkSetMacro(AutomaticNumberOfIterations, bool);
105  itkGetConstMacro(AutomaticNumberOfIterations, bool);
106  itkBooleanMacro(AutomaticNumberOfIterations);
108 
114  itkSetMacro(ComputeInverse, bool);
115  itkGetConstMacro(ComputeInverse, bool);
116  itkBooleanMacro(ComputeInverse);
118 
120  itkStaticConstMacro(ImageDimension, unsigned int,
121  TInputImage::ImageDimension);
122  itkStaticConstMacro(OutputImageDimension, unsigned int,
123  TInputImage::ImageDimension);
124  itkStaticConstMacro(PixelDimension, unsigned int,
125  InputPixelType::Dimension);
126  itkStaticConstMacro(OutputPixelDimension, unsigned int,
127  OutputPixelType::Dimension);
129 
130 #ifdef ITK_USE_CONCEPT_CHECKING
131 
132  itkConceptMacro( OutputHasNumericTraitsCheck,
134  itkConceptMacro( SameDimensionCheck1,
136  itkConceptMacro( SameDimensionCheck2,
138  itkConceptMacro( SameDimensionCheck3,
140 
142 #endif
143 
144 protected:
147 
148  void PrintSelf(std::ostream & os, Indent indent) const;
149 
153  void GenerateData();
154 
155  typedef typename InputImageType::RegionType RegionType;
156 
157  typedef DivideImageFilter<
161 
162  typedef CastImageFilter<
164 
165  typedef WarpVectorImageFilter<
168 
171 
172  typedef AddImageFilter<
174 
181 
182 private:
183  ExponentialDeformationFieldImageFilter(const Self &); //purposely not
184  // implemented
185  void operator=(const Self &); //purposely not
186  // implemented
187 
190 
192 
197 };
198 } // end namespace itk
199 
200 #ifndef ITK_MANUAL_INSTANTIATION
201 #include "itkExponentialDeformationFieldImageFilter.hxx"
202 #endif
203 
204 #endif
205