ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkExponentialDisplacementFieldImageFilter.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 __itkExponentialDisplacementFieldImageFilter_h
19 #define __itkExponentialDisplacementFieldImageFilter_h
20 
21 #include "itkDivideImageFilter.h"
22 #include "itkCastImageFilter.h"
25 #include "itkAddImageFilter.h"
26 
27 namespace itk
28 {
61 template< class TInputImage, class TOutputImage >
63  public ImageToImageFilter< TInputImage, TOutputImage >
64 {
65 public:
71 
73  itkNewMacro(Self);
74 
77 
79  typedef TInputImage InputImageType;
80  typedef typename InputImageType::Pointer InputImagePointer;
81  typedef typename InputImageType::ConstPointer InputImageConstPointer;
82  typedef typename InputImageType::PixelType InputPixelType;
83  typedef typename InputPixelType::RealValueType InputPixelRealValueType;
84 
85  typedef TOutputImage OutputImageType;
86  typedef typename OutputImageType::Pointer OutputImagePointer;
87  typedef typename OutputImageType::PixelType OutputPixelType;
88 
90  itkSetMacro(MaximumNumberOfIterations, unsigned int);
91  itkGetConstMacro(MaximumNumberOfIterations, unsigned int);
93 
98  itkSetMacro(AutomaticNumberOfIterations, bool);
99  itkGetConstMacro(AutomaticNumberOfIterations, bool);
100  itkBooleanMacro(AutomaticNumberOfIterations);
102 
108  itkSetMacro(ComputeInverse, bool);
109  itkGetConstMacro(ComputeInverse, bool);
110  itkBooleanMacro(ComputeInverse);
112 
114  itkStaticConstMacro(ImageDimension, unsigned int,
115  TInputImage::ImageDimension);
116  itkStaticConstMacro(OutputImageDimension, unsigned int,
117  TInputImage::ImageDimension);
118  itkStaticConstMacro(PixelDimension, unsigned int,
119  InputPixelType::Dimension);
120  itkStaticConstMacro(OutputPixelDimension, unsigned int,
121  OutputPixelType::Dimension);
123 
124 #ifdef ITK_USE_CONCEPT_CHECKING
125 
126  itkConceptMacro( OutputHasNumericTraitsCheck,
128  itkConceptMacro( SameDimensionCheck1,
130  itkConceptMacro( SameDimensionCheck2,
132  itkConceptMacro( SameDimensionCheck3,
134 
136 #endif
137 
138 protected:
141 
142  void PrintSelf(std::ostream & os, Indent indent) const;
143 
147  void GenerateData();
148 
149  typedef typename InputImageType::RegionType RegionType;
150 
151  typedef DivideImageFilter<
155 
156  typedef CastImageFilter<
158 
159  typedef WarpVectorImageFilter<
162 
165 
166  typedef AddImageFilter<
168 
175 
176 private:
177  ExponentialDisplacementFieldImageFilter(const Self &); //purposely not
178  // implemented
179  void operator=(const Self &); //purposely not
180  // implemented
181 
184 
186 
191 };
192 } // end namespace itk
193 
194 #ifndef ITK_MANUAL_INSTANTIATION
195 #include "itkExponentialDisplacementFieldImageFilter.hxx"
196 #endif
197 
198 #endif
199