ITK  6.0.0
Insight Toolkit
itkExponentialDisplacementFieldImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
22#include "itkCastImageFilter.h"
25#include "itkAddImageFilter.h"
26
27namespace itk
28{
61template <typename TInputImage, typename TOutputImage>
62class ITK_TEMPLATE_EXPORT ExponentialDisplacementFieldImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
63{
64public:
65 ITK_DISALLOW_COPY_AND_MOVE(ExponentialDisplacementFieldImageFilter);
66
72
74 itkNewMacro(Self);
75
77 itkOverrideGetNameOfClassMacro(ExponentialDisplacementFieldImageFilter);
78
80 using InputImageType = TInputImage;
83 using InputPixelType = typename InputImageType::PixelType;
84 using InputPixelRealValueType = typename InputPixelType::RealValueType;
85
86 using OutputImageType = TOutputImage;
88 using OutputPixelType = typename OutputImageType::PixelType;
89
91 itkSetMacro(MaximumNumberOfIterations, unsigned int);
92 itkGetConstMacro(MaximumNumberOfIterations, unsigned int);
99 itkSetMacro(AutomaticNumberOfIterations, bool);
100 itkGetConstMacro(AutomaticNumberOfIterations, bool);
101 itkBooleanMacro(AutomaticNumberOfIterations);
109 itkSetMacro(ComputeInverse, bool);
110 itkGetConstMacro(ComputeInverse, bool);
111 itkBooleanMacro(ComputeInverse);
115 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
116 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
117 static constexpr unsigned int PixelDimension = InputPixelType::Dimension;
118 static constexpr unsigned int OutputPixelDimension = OutputPixelType::Dimension;
119
120#ifdef ITK_USE_CONCEPT_CHECKING
121 // Begin concept checking
126 // End concept checking
127#endif
128
129protected:
132
133 void
134 PrintSelf(std::ostream & os, Indent indent) const override;
135
139 void
140 GenerateData() override;
141
143
146
148
150
152
154
161
162private:
163 bool m_AutomaticNumberOfIterations{};
164 unsigned int m_MaximumNumberOfIterations{};
165
166 bool m_ComputeInverse{};
167
169 CasterPointer m_Caster{};
171 AdderPointer m_Adder{};
172};
173} // end namespace itk
174
175#ifndef ITK_MANUAL_INSTANTIATION
176# include "itkExponentialDisplacementFieldImageFilter.hxx"
177#endif
178
179#endif
Pixel-wise addition of two images.
Casts input pixels to output pixel type.
Pixel-wise division of two images.
Computes a diffeomorphic displacement field as the Lie group exponential of a vector field.
void PrintSelf(std::ostream &os, Indent indent) const override
typename FieldInterpolatorType::OutputType FieldInterpolatorOutputType
~ExponentialDisplacementFieldImageFilter() override=default
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Warps an image using an input displacement field.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....