ITK  5.3.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  * http://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 
23 namespace itk
24 {
41 template <typename TInputMesh, typename TOutputMesh, typename TDisplacementField>
42 class ITK_TEMPLATE_EXPORT WarpMeshFilter : public MeshToMeshFilter<TInputMesh, TOutputMesh>
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_MOVE(WarpMeshFilter);
46 
52 
53  using InputMeshType = TInputMesh;
54  using InputMeshPointer = typename InputMeshType::Pointer;
55 
56  using OutputMeshType = TOutputMesh;
57  using OutputMeshPointer = typename OutputMeshType::Pointer;
58 
60  using CoordRepType = typename TInputMesh::CoordRepType;
61 
63  using DisplacementFieldType = TDisplacementField;
64  using DisplacementFieldPointer = typename DisplacementFieldType::ConstPointer;
65  using DisplacementType = typename DisplacementFieldType::PixelType;
66 
68  itkNewMacro(Self);
69 
71  itkTypeMacro(WarpMeshFilter, MeshToMeshFilter);
72 
74  void
75  SetDisplacementField(const DisplacementFieldType * field);
76 
78  const DisplacementFieldType *
79  GetDisplacementField() const;
80 
81 protected:
83  ~WarpMeshFilter() override = default;
84  void
85  PrintSelf(std::ostream & os, Indent indent) const override;
86 
88  void
89  GenerateData() override;
90 };
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 # include "itkWarpMeshFilter.hxx"
95 #endif
96 
97 #endif
itk::WarpMeshFilter::CoordRepType
typename TInputMesh::CoordRepType CoordRepType
Definition: itkWarpMeshFilter.h:60
itk::WarpMeshFilter::DisplacementType
typename DisplacementFieldType::PixelType DisplacementType
Definition: itkWarpMeshFilter.h:65
itk::MeshSource::OutputMeshPointer
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
itk::MeshToMeshFilter::InputMeshPointer
typename InputMeshType::Pointer InputMeshPointer
Definition: itkMeshToMeshFilter.h:66
itk::WarpMeshFilter::DisplacementFieldPointer
typename DisplacementFieldType::ConstPointer DisplacementFieldPointer
Definition: itkWarpMeshFilter.h:64
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::MeshToMeshFilter::InputMeshType
TInputMesh InputMeshType
Definition: itkMeshToMeshFilter.h:65
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::WarpMeshFilter
WarpMeshFilter applies a deformation field to all the points of a mesh. The deformation field is repr...
Definition: itkWarpMeshFilter.h:42
itk::MeshToMeshFilter
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
Definition: itkMeshToMeshFilter.h:47
itkMeshToMeshFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::WarpMeshFilter::DisplacementFieldType
TDisplacementField DisplacementFieldType
Definition: itkWarpMeshFilter.h:63
itk::MeshSource::OutputMeshType
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68