ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFixedPointInverseDisplacementFieldImageFilter.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 itkFixedPointInverseDisplacementFieldImageFilter_h
19#define itkFixedPointInverseDisplacementFieldImageFilter_h
20
21
23
28#include "itkTimeProbe.h"
29
30namespace itk
31{
32
56
57template <typename TInputImage, typename TOutputImage>
59 : public ImageToImageFilter<TInputImage, TOutputImage>
60{
61public:
62 ITK_DISALLOW_COPY_AND_MOVE(FixedPointInverseDisplacementFieldImageFilter);
63
69
71 itkNewMacro(Self);
72
74 itkOverrideGetNameOfClassMacro(FixedPointInverseDisplacementFieldImageFilter);
75
76
78 using InputImageType = TInputImage;
79 using InputImageConstPointer = typename InputImageType::ConstPointer;
80 using InputImagePointer = typename InputImageType::Pointer;
81 using InputImagePointType = typename InputImageType::PointType;
82 using InputImageRegionType = typename InputImageType::RegionType;
83 using InputImageSpacingType = typename InputImageType::SpacingType;
84 using InputImageIndexType = typename InputImageType::IndexType;
85
86
87 using OutputImageType = TOutputImage;
88 using OutputImagePointer = typename OutputImageType::Pointer;
89 using OutputImagePixelType = typename OutputImageType::PixelType;
90 using OutputImagePointType = typename OutputImageType::PointType;
91 using OutputImageIndexType = typename OutputImageType::IndexType;
92 using OutputImageValueType = typename OutputImagePixelType::ValueType;
93 using OutputImageSizeType = typename OutputImageType::SizeType;
94 using OutputImageSpacingType = typename OutputImageType::SpacingType;
95 using OutputImageOriginPointType = typename TOutputImage::PointType;
97
98
100 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
101
106
109 using OutputVectorType = typename TOutputImage::PixelType;
113
114
115 itkSetMacro(NumberOfIterations, unsigned int);
116 itkGetConstMacro(NumberOfIterations, unsigned int);
117
118
122 itkGetConstReferenceMacro(Size, OutputImageSizeType);
123
126 virtual void
127 SetOutputSpacing(const double * values);
128
130 itkGetConstReferenceMacro(OutputSpacing, OutputImageSpacingType);
131
134 virtual void
135 SetOutputOrigin(const double * values);
136
138 static_assert(TInputImage::ImageDimension == TOutputImage::ImageDimension);
139
140protected:
143
144 void
145 PrintSelf(std::ostream & os, Indent indent) const override;
146
147 void
148 GenerateData() override;
149 void
151
152 void
154
155 unsigned int m_NumberOfIterations{ 5 };
156
157
158private:
159 OutputImageSizeType m_Size; // Size of the output image
162};
163
164} // end namespace itk
165
166#ifndef ITK_MANUAL_INSTANTIATION
167# include "itkFixedPointInverseDisplacementFieldImageFilter.hxx"
168#endif
169#endif
VectorLinearInterpolateImageFunction< TInputImage, double > FieldInterpolatorType
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetOutputOrigin(const double *values)
WarpVectorImageFilter< TOutputImage, TInputImage, TOutputImage > VectorWarperType
virtual void SetOutputSpacing(const double *values)
typename NumericTraits< typename TOutputImage::PixelType >::RealType InterpolatorVectorType
Read-only ImageRegionIterator: ImageRegionConstIterator<TImage> behaves as ImageRegionIterator<const ...
A multi-dimensional iterator templated over image type that walks an image region and is specialized ...
A multi-dimensional iterator templated over image type that walks a region of pixels.
Control indentation during Print() invocation.
Definition itkIndent.h:53
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, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition itkSize.h:70