ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkIterativeInverseDisplacementFieldImageFilter.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 itkIterativeInverseDisplacementFieldImageFilter_h
19#define itkIterativeInverseDisplacementFieldImageFilter_h
20
21
24#include "itkTimeProbe.h"
25
26namespace itk
27{
54
55template <typename TInputImage, typename TOutputImage>
57 : public ImageToImageFilter<TInputImage, TOutputImage>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(IterativeInverseDisplacementFieldImageFilter);
61
67
69 itkNewMacro(Self);
70
72 itkOverrideGetNameOfClassMacro(IterativeInverseDisplacementFieldImageFilter);
73
75 using InputImageType = TInputImage;
76 using InputImageConstPointer = typename InputImageType::ConstPointer;
77 using InputImagePointer = typename InputImageType::Pointer;
78 using InputImagePointType = typename InputImageType::PointType;
79 using InputImageRegionType = typename InputImageType::RegionType;
80 using InputImageSpacingType = typename InputImageType::SpacingType;
81 using OutputImageType = TOutputImage;
82 using OutputImagePointer = typename OutputImageType::Pointer;
83 using OutputImagePixelType = typename OutputImageType::PixelType;
84 using OutputImagePointType = typename OutputImageType::PointType;
85 using OutputImageIndexType = typename OutputImageType::IndexType;
86 using OutputImageValueType = typename OutputImagePixelType::ValueType;
87
89
92#ifndef ITK_FUTURE_LEGACY_REMOVE
93 using OutputIterator ITK_FUTURE_DEPRECATED("Please use `itk::ImageRegionIterator<TImage>` directly!") =
95#endif
97
101
102 itkSetMacro(NumberOfIterations, unsigned int);
103 itkGetConstMacro(NumberOfIterations, unsigned int);
104
105 // If the error (in mm) between forward and backward mapping is smaller than
106 // the StopValue,
107 // the algorithm stops.
108 // This value can be used to speed up the calculation.
109 itkSetMacro(StopValue, double);
110 itkGetConstMacro(StopValue, double);
111
113
114 itkConceptMacro(SameDimensionCheck,
116
117protected:
120
121 void
122 PrintSelf(std::ostream & os, Indent indent) const override;
123
124 void
125 GenerateData() override;
126
127 unsigned int m_NumberOfIterations{ 5 };
128
129 double m_StopValue{};
130 double m_Time{};
131};
132} // end namespace itk
133
134#ifndef ITK_MANUAL_INSTANTIATION
135# include "itkIterativeInverseDisplacementFieldImageFilter.hxx"
136#endif
137
138#endif
A multi-dimensional iterator templated over image type that walks a region of pixels.
A multi-dimensional iterator templated over image type that walks a region of pixels.
Control indentation during Print() invocation.
Definition itkIndent.h:51
void PrintSelf(std::ostream &os, Indent indent) const override
~IterativeInverseDisplacementFieldImageFilter() override=default
VectorLinearInterpolateImageFunction< TInputImage, double > FieldInterpolatorType
WarpVectorImageFilter< TOutputImage, TInputImage, TOutputImage > VectorWarperType
Implements transparent reference counting.
Computes the time passed between two points in code.
Linearly interpolate a vector image at specified positions.
Warps an image using an input displacement field.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....