ITK  6.0.0
Insight Toolkit
itkWarpMeshFilter.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 itkWarpMeshFilter_h
19#define itkWarpMeshFilter_h
20
21#include "itkMeshToMeshFilter.h"
22
23namespace itk
24{
41template <typename TInputMesh, typename TOutputMesh, typename TDisplacementField>
42class ITK_TEMPLATE_EXPORT WarpMeshFilter : public MeshToMeshFilter<TInputMesh, TOutputMesh>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(WarpMeshFilter);
46
52
53 using InputMeshType = TInputMesh;
55
56 using OutputMeshType = TOutputMesh;
58
60 using CoordinateType = typename TInputMesh::CoordinateType;
61#ifndef ITK_FUTURE_LEGACY_REMOVE
62 using CoordRepType ITK_FUTURE_DEPRECATED(
63 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") = CoordinateType;
64#endif
65
67 using DisplacementFieldType = TDisplacementField;
69 using DisplacementType = typename DisplacementFieldType::PixelType;
70
72 itkNewMacro(Self);
73
75 itkOverrideGetNameOfClassMacro(WarpMeshFilter);
76
78 void
80
84
85protected:
87 ~WarpMeshFilter() override = default;
88 void
89 PrintSelf(std::ostream & os, Indent indent) const override;
90
92 void
93 GenerateData() override;
94};
95} // end namespace itk
96
97#ifndef ITK_MANUAL_INSTANTIATION
98# include "itkWarpMeshFilter.hxx"
99#endif
100
101#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
typename InputMeshType::Pointer InputMeshPointer
WarpMeshFilter applies a deformation field to all the points of a mesh. The deformation field is repr...
typename DisplacementFieldType::PixelType DisplacementType
void GenerateData() override
typename TInputMesh::CoordinateType CoordinateType
void SetDisplacementField(const DisplacementFieldType *field)
void PrintSelf(std::ostream &os, Indent indent) const override
TDisplacementField DisplacementFieldType
typename DisplacementFieldType::ConstPointer DisplacementFieldPointer
~WarpMeshFilter() override=default
const DisplacementFieldType * GetDisplacementField() const
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....