ITK  5.0.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< typename TInputImage, typename TOutputImage >
62 class ITK_TEMPLATE_EXPORT ExponentialDisplacementFieldImageFilter:
63  public ImageToImageFilter< TInputImage, TOutputImage >
64 {
65 public:
66  ITK_DISALLOW_COPY_AND_ASSIGN(ExponentialDisplacementFieldImageFilter);
67 
73 
75  itkNewMacro(Self);
76 
79 
81  using InputImageType = TInputImage;
82  using InputImagePointer = typename InputImageType::Pointer;
83  using InputImageConstPointer = typename InputImageType::ConstPointer;
84  using InputPixelType = typename InputImageType::PixelType;
85  using InputPixelRealValueType = typename InputPixelType::RealValueType;
86 
87  using OutputImageType = TOutputImage;
88  using OutputImagePointer = typename OutputImageType::Pointer;
89  using OutputPixelType = typename OutputImageType::PixelType;
90 
92  itkSetMacro(MaximumNumberOfIterations, unsigned int);
93  itkGetConstMacro(MaximumNumberOfIterations, unsigned int);
95 
100  itkSetMacro(AutomaticNumberOfIterations, bool);
101  itkGetConstMacro(AutomaticNumberOfIterations, bool);
102  itkBooleanMacro(AutomaticNumberOfIterations);
104 
110  itkSetMacro(ComputeInverse, bool);
111  itkGetConstMacro(ComputeInverse, bool);
112  itkBooleanMacro(ComputeInverse);
114 
116  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
117  static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
118  static constexpr unsigned int PixelDimension = InputPixelType::Dimension;
119  static constexpr unsigned int OutputPixelDimension = OutputPixelType::Dimension;
120 
121 #ifdef ITK_USE_CONCEPT_CHECKING
122  // Begin concept checking
123  itkConceptMacro( OutputHasNumericTraitsCheck,
125  itkConceptMacro( SameDimensionCheck1,
127  itkConceptMacro( SameDimensionCheck2,
129  itkConceptMacro( SameDimensionCheck3,
131  // End concept checking
132 #endif
133 
134 protected:
136  ~ExponentialDisplacementFieldImageFilter() override = default;
137 
138  void PrintSelf(std::ostream & os, Indent indent) const override;
139 
143  void GenerateData() override;
144 
146 
151 
152  using CasterType = CastImageFilter<
154 
158 
160  OutputImageType, double >;
161 
162  using AdderType = AddImageFilter<
164 
171 
172 private:
175 
177 
182 };
183 } // end namespace itk
184 
185 #ifndef ITK_MANUAL_INSTANTIATION
186 #include "itkExponentialDisplacementFieldImageFilter.hxx"
187 #endif
188 
189 #endif
typename OutputImageType::Pointer OutputImagePointer
Pixel-wise addition of two images.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Warps an image using an input displacement field.
typename InputImageType::Pointer InputImagePointer
Computes a diffeomorphic displacement field as the Lie group exponential of a vector field...
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
typename FieldInterpolatorType::OutputType FieldInterpolatorOutputType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer
Templated n-dimensional image class.
Definition: itkImage.h:75
Casts input pixels to output pixel type.
Pixel-wise division of two images.