ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkInverseDisplacementFieldImageFilter.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 itkInverseDisplacementFieldImageFilter_h
19#define itkInverseDisplacementFieldImageFilter_h
20
22#include "itkKernelTransform.h"
24
25namespace itk
26{
64template <typename TInputImage, typename TOutputImage>
65class ITK_TEMPLATE_EXPORT InverseDisplacementFieldImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(InverseDisplacementFieldImageFilter);
69
75
76 using InputImageType = TInputImage;
77 using InputImagePointer = typename InputImageType::Pointer;
78 using InputImageConstPointer = typename InputImageType::ConstPointer;
79 using InputImageRegionType = typename InputImageType::RegionType;
80 using OutputImageType = TOutputImage;
81 using OutputImagePointer = typename OutputImageType::Pointer;
82
84 itkNewMacro(Self);
85
87 itkOverrideGetNameOfClassMacro(InverseDisplacementFieldImageFilter);
88
90 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
91
98
100 using SizeType = typename OutputImageType::SizeType;
101
103 using IndexType = typename OutputImageType::IndexType;
104
106 using OutputPixelType = typename TOutputImage::PixelType;
107 using OutputPixelComponentType = typename OutputPixelType::ValueType;
108
110 using OutputImageRegionType = typename TOutputImage::RegionType;
111
113 using SpacingType = typename TOutputImage::SpacingType;
114 using OriginPointType = typename TOutputImage::PointType;
115
120 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
122
124 itkSetMacro(Size, SizeType);
125
127 itkGetConstReferenceMacro(Size, SizeType);
128
130 itkSetMacro(OutputSpacing, SpacingType);
131 virtual void
132 SetOutputSpacing(const double * spacing);
134
136 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
137
139 itkSetMacro(OutputOrigin, OriginPointType);
140 virtual void
141 SetOutputOrigin(const double * origin);
143
145 itkGetConstReferenceMacro(OutputOrigin, OriginPointType);
146
152 itkSetMacro(SubsamplingFactor, unsigned int);
153 itkGetConstMacro(SubsamplingFactor, unsigned int);
155
161 void
163
169 void
171
174 GetMTime() const override;
175
177
178protected:
181 void
182 PrintSelf(std::ostream & os, Indent indent) const override;
183
188 void
189 GenerateData() override;
190
194 void
196
197private:
198 SizeType m_Size{}; // Size of the output image
199 KernelTransformPointerType m_KernelTransform{}; // Coordinate transform to
200 // use
201 SpacingType m_OutputSpacing{}; // output image spacing
202 OriginPointType m_OutputOrigin{}; // output image origin
203
204 unsigned int m_SubsamplingFactor{}; // factor to subsample the
205 // input field.
206};
207} // end namespace itk
208
209#ifndef ITK_MANUAL_INSTANTIATION
210# include "itkInverseDisplacementFieldImageFilter.hxx"
211#endif
212
213#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
~InverseDisplacementFieldImageFilter() override=default
typename KernelTransformType::Pointer KernelTransformPointerType
virtual void SetOutputOrigin(const double *origin)
virtual void SetOutputSpacing(const double *spacing)
KernelTransform< double, Self::ImageDimension > KernelTransformType
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
ModifiedTimeType GetMTime() const override
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition itkSize.h:70