ITK  4.2.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 {
62 template< class TInputImage, class TOutputImage >
64  public ImageToImageFilter< TInputImage, TOutputImage >
65 {
66 public:
72 
74  itkNewMacro(Self);
75 
78 
80  typedef TInputImage InputImageType;
81  typedef typename InputImageType::Pointer InputImagePointer;
82  typedef typename InputImageType::ConstPointer InputImageConstPointer;
83  typedef typename InputImageType::PixelType InputPixelType;
84  typedef typename InputPixelType::RealValueType InputPixelRealValueType;
85 
86  typedef TOutputImage OutputImageType;
87  typedef typename OutputImageType::Pointer OutputImagePointer;
88  typedef typename OutputImageType::PixelType OutputPixelType;
89 
91  itkSetMacro(MaximumNumberOfIterations, unsigned int);
92  itkGetConstMacro(MaximumNumberOfIterations, unsigned int);
94 
99  itkSetMacro(AutomaticNumberOfIterations, bool);
100  itkGetConstMacro(AutomaticNumberOfIterations, bool);
101  itkBooleanMacro(AutomaticNumberOfIterations);
103 
109  itkSetMacro(ComputeInverse, bool);
110  itkGetConstMacro(ComputeInverse, bool);
111  itkBooleanMacro(ComputeInverse);
113 
115  itkStaticConstMacro(ImageDimension, unsigned int,
116  TInputImage::ImageDimension);
117  itkStaticConstMacro(OutputImageDimension, unsigned int,
118  TInputImage::ImageDimension);
119  itkStaticConstMacro(PixelDimension, unsigned int,
120  InputPixelType::Dimension);
121  itkStaticConstMacro(OutputPixelDimension, unsigned int,
122  OutputPixelType::Dimension);
124 
125 #ifdef ITK_USE_CONCEPT_CHECKING
126 
127  itkConceptMacro( OutputHasNumericTraitsCheck,
129  itkConceptMacro( SameDimensionCheck1,
131  itkConceptMacro( SameDimensionCheck2,
133  itkConceptMacro( SameDimensionCheck3,
135 
137 #endif
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 private:
176  ExponentialDisplacementFieldImageFilter(const Self &); //purposely not
177  // implemented
178  void operator=(const Self &); //purposely not
179  // implemented
180 
183 
185 
190 };
191 } // end namespace itk
192 
193 #ifndef ITK_MANUAL_INSTANTIATION
194 #include "itkExponentialDisplacementFieldImageFilter.hxx"
195 #endif
196 
197 #endif
198