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 using DirectionType = typename TOutputImage::DirectionType;
115
121 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
124 itkSetMacro(Size, SizeType);
125
127 itkGetConstReferenceMacro(Size, SizeType);
128
131 itkSetMacro(OutputSpacing, SpacingType);
132 virtual void
133 SetOutputSpacing(const double * spacing);
136 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
137
140 itkSetMacro(OutputOrigin, OriginPointType);
141 virtual void
142 SetOutputOrigin(const double * origin);
145 itkGetConstReferenceMacro(OutputOrigin, OriginPointType);
146
150 virtual void
152 itkGetConstReferenceMacro(OutputDirection, DirectionType);
154
161 itkSetMacro(SubsamplingFactor, unsigned int);
162 itkGetConstMacro(SubsamplingFactor, unsigned int);
169 void
171
177 void
179
181 [[nodiscard]] ModifiedTimeType
182 GetMTime() const override;
183
185 void
186 VerifyPreconditions() const override;
187
190 void
191 VerifyInputInformation() const override;
192
194
195protected:
198 void
199 PrintSelf(std::ostream & os, Indent indent) const override;
200
205 void
206 GenerateData() override;
207
211 void
213
214private:
215 SizeType m_Size{}; // Size of the output image
216 KernelTransformPointerType m_KernelTransform{}; // Coordinate transform to
217 // use
218 SpacingType m_OutputSpacing{}; // output image spacing
219 OriginPointType m_OutputOrigin{}; // output image origin
220 DirectionType m_OutputDirection{}; // output image direction cosines
222
223 unsigned int m_SubsamplingFactor{}; // factor to subsample the
224 // input field.
225};
226} // end namespace itk
227
228#ifndef ITK_MANUAL_INSTANTIATION
229# include "itkInverseDisplacementFieldImageFilter.hxx"
230#endif
231
232#endif
Control indentation during Print() invocation.
Definition itkIndent.h:51
void VerifyPreconditions() const override
~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 VerifyInputInformation() const override
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
virtual void SetOutputDirection(const DirectionType &direction)
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