ITK  6.0.0
Insight Toolkit
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;
80 using OutputImageType = TOutputImage;
82
84 itkNewMacro(Self);
85
87 itkOverrideGetNameOfClassMacro(InverseDisplacementFieldImageFilter);
88
90 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
91
98
101
104
106 using OutputPixelType = typename TOutputImage::PixelType;
107 using OutputPixelComponentType = typename OutputPixelType::ValueType;
108
111
113 using SpacingType = typename TOutputImage::SpacingType;
115
120 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
124 itkSetMacro(Size, SizeType);
125
127 itkGetConstReferenceMacro(Size, SizeType);
128
130 itkSetMacro(OutputSpacing, SpacingType);
131 virtual void
132 SetOutputSpacing(const double * spacing);
136 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
137
139 itkSetMacro(OutputOrigin, OriginPointType);
140 virtual void
141 SetOutputOrigin(const double * origin);
145 itkGetConstReferenceMacro(OutputOrigin, OriginPointType);
146
152 itkSetMacro(SubsamplingFactor, unsigned int);
153 itkGetConstMacro(SubsamplingFactor, unsigned int);
161 void
163
169 void
171
174 GetMTime() const override;
175
176#ifdef ITK_USE_CONCEPT_CHECKING
177 // Begin concept checking
179 // End concept checking
180#endif
181
182protected:
185 void
186 PrintSelf(std::ostream & os, Indent indent) const override;
187
192 void
193 GenerateData() override;
194
198 void
200
201private:
202 SizeType m_Size{}; // Size of the output image
203 KernelTransformPointerType m_KernelTransform{}; // Coordinate transform to
204 // use
205 SpacingType m_OutputSpacing{}; // output image spacing
206 OriginPointType m_OutputOrigin{}; // output image origin
207
208 unsigned int m_SubsamplingFactor{}; // factor to subsample the
209 // input field.
210};
211} // end namespace itk
212
213#ifndef ITK_MANUAL_INSTANTIATION
214# include "itkInverseDisplacementFieldImageFilter.hxx"
215#endif
216
217#endif
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
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
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Computes the inverse of a displacement field.
~InverseDisplacementFieldImageFilter() override=default
typename KernelTransformType::Pointer KernelTransformPointerType
virtual void SetOutputOrigin(const double *origin)
virtual void SetOutputSpacing(const double *spacing)
void PrintSelf(std::ostream &os, Indent indent) const override
ModifiedTimeType GetMTime() const override
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType
Definition: itkIntTypes.h:105
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition: itkSize.h:70