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"
23
24namespace itk
25{
63template <typename TInputImage, typename TOutputImage>
64class ITK_TEMPLATE_EXPORT InverseDisplacementFieldImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
65{
66public:
67 ITK_DISALLOW_COPY_AND_MOVE(InverseDisplacementFieldImageFilter);
68
74
75 using InputImageType = TInputImage;
76 using InputImagePointer = typename InputImageType::Pointer;
77 using InputImageConstPointer = typename InputImageType::ConstPointer;
78 using InputImageRegionType = typename InputImageType::RegionType;
79 using OutputImageType = TOutputImage;
80 using OutputImagePointer = typename OutputImageType::Pointer;
81
83 itkNewMacro(Self);
84
86 itkOverrideGetNameOfClassMacro(InverseDisplacementFieldImageFilter);
87
89 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
90
97
99 using SizeType = typename OutputImageType::SizeType;
100
102 using IndexType = typename OutputImageType::IndexType;
103
105 using OutputPixelType = typename TOutputImage::PixelType;
106 using OutputPixelComponentType = typename OutputPixelType::ValueType;
107
109 using OutputImageRegionType = typename TOutputImage::RegionType;
110
112 using SpacingType = typename TOutputImage::SpacingType;
113 using OriginPointType = typename TOutputImage::PointType;
114
120 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
123 itkSetMacro(Size, SizeType);
124
126 itkGetConstReferenceMacro(Size, SizeType);
127
130 itkSetMacro(OutputSpacing, SpacingType);
131 virtual void
132 SetOutputSpacing(const double * spacing);
135 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
136
139 itkSetMacro(OutputOrigin, OriginPointType);
140 virtual void
141 SetOutputOrigin(const double * origin);
144 itkGetConstReferenceMacro(OutputOrigin, OriginPointType);
145
152 itkSetMacro(SubsamplingFactor, unsigned int);
153 itkGetConstMacro(SubsamplingFactor, unsigned int);
160 void
162
168 void
170
172 [[nodiscard]] ModifiedTimeType
173 GetMTime() const override;
174
176
177protected:
180 void
181 PrintSelf(std::ostream & os, Indent indent) const override;
182
187 void
188 GenerateData() override;
189
193 void
195
196private:
197 SizeType m_Size{}; // Size of the output image
198 KernelTransformPointerType m_KernelTransform{}; // Coordinate transform to
199 // use
200 SpacingType m_OutputSpacing{}; // output image spacing
201 OriginPointType m_OutputOrigin{}; // output image origin
202
203 unsigned int m_SubsamplingFactor{}; // factor to subsample the
204 // input field.
205};
206} // end namespace itk
207
208#ifndef ITK_MANUAL_INSTANTIATION
209# include "itkInverseDisplacementFieldImageFilter.hxx"
210#endif
211
212#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