ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkForwardWarpImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
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
19#ifndef rtkForwardWarpImageFilter_h
20#define rtkForwardWarpImageFilter_h
21
22#include <itkWarpImageFilter.h>
23
24#include "rtkMacro.h"
25
26namespace rtk
27{
28
41template <class TInputImage,
42 class TOutputImage = TInputImage,
44 TInputImage::ImageDimension>>
45class ITK_TEMPLATE_EXPORT ForwardWarpImageFilter : public itk::WarpImageFilter<TInputImage, TOutputImage, TDVF>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(ForwardWarpImageFilter);
49
55
58 using DisplacementFieldPointer = typename DisplacementFieldType::Pointer;
59 using DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer;
60 using DisplacementType = typename DisplacementFieldType::PixelType;
61
63 using CoordinateType = double;
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(ForwardWarpImageFilter);
71
72protected:
74 ~ForwardWarpImageFilter() override = default;
75
76 void
77 GenerateData() override;
78
79 // Redefine stuff that is private in the Superclass
80 void
82
84
85 typename TOutputImage::IndexType m_Protected_StartIndex;
86 typename TOutputImage::IndexType m_Protected_EndIndex;
87};
88
89} // end namespace rtk
90
91#ifndef rtk_MANUAL_INSTANTIATION
92# include "rtkForwardWarpImageFilter.hxx"
93#endif
94
95#endif
Templated n-dimensional image class.
Definition itkImage.h:89
A templated class holding a geometric point in n-Dimensional space.
Definition itkPoint.h:54
Implements transparent reference counting.
Warps an image using an input displacement field.
typename DisplacementFieldType::ConstPointer DisplacementFieldConstPointer
itk::WarpImageFilter< TInputImage, TOutputImage, TDVF > Superclass
itk::SmartPointer< const Self > ConstPointer
itk::Point< CoordinateType, Self::ImageDimension > PointType
itk::SmartPointer< Self > Pointer
typename DisplacementFieldType::PixelType DisplacementType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
void Protected_EvaluateDisplacementAtPhysicalPoint(const PointType &point, DisplacementType &output)
~ForwardWarpImageFilter() override=default
void GenerateData() override