ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkUnwarpSequenceConjugateGradientOperator.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 rtkUnwarpSequenceConjugateGradientOperator_h
20#define rtkUnwarpSequenceConjugateGradientOperator_h
21
24
25namespace rtk
26{
27
58
59template <typename TImageSequence,
60 typename TDVFImageSequence =
61 itk::Image<itk::CovariantVector<typename TImageSequence::ValueType, TImageSequence::ImageDimension - 1>,
62 TImageSequence::ImageDimension>,
63 typename TImage = itk::Image<typename TImageSequence::ValueType, TImageSequence::ImageDimension - 1>,
64 typename TDVFImage =
65 itk::Image<itk::CovariantVector<typename TImageSequence::ValueType, TImageSequence::ImageDimension - 1>,
66 TImageSequence::ImageDimension - 1>>
67class ITK_TEMPLATE_EXPORT UnwarpSequenceConjugateGradientOperator : public ConjugateGradientOperator<TImageSequence>
68{
69public:
70 ITK_DISALLOW_COPY_AND_MOVE(UnwarpSequenceConjugateGradientOperator);
71
76
78 itkNewMacro(Self);
79
81 itkOverrideGetNameOfClassMacro(UnwarpSequenceConjugateGradientOperator);
82
84
86 void
87 SetDisplacementField(const TDVFImageSequence * DVFs);
88
90 typename TDVFImageSequence::Pointer
92
94 itkSetMacro(PhaseShift, float);
95 itkGetMacro(PhaseShift, float);
96
97 itkSetMacro(UseNearestNeighborInterpolationInWarping, bool);
98 itkGetMacro(UseNearestNeighborInterpolationInWarping, bool);
99
101 itkSetMacro(UseCudaCyclicDeformation, bool);
102 itkGetMacro(UseCudaCyclicDeformation, bool);
103
104protected:
107
109 void
110 GenerateData() override;
111
115
117 bool m_UseNearestNeighborInterpolationInWarping; // Default is false, linear interpolation is used instead
118
122 void
123 VerifyInputInformation() const override
124 {}
125
128 void
130 void
132
134};
135} // namespace rtk
136
137
138#ifndef ITK_MANUAL_INSTANTIATION
139# include "rtkUnwarpSequenceConjugateGradientOperator.hxx"
140#endif
141
142#endif
A templated class holding a n-Dimensional covariant vector.
Templated n-dimensional image class.
Definition itkImage.h:89
Implements transparent reference counting.
void SetDisplacementField(const TDVFImageSequence *DVFs)
rtk::WarpSequenceImageFilter< TImageSequence, TDVFImageSequence, TImage, TDVFImage > WarpSequenceFilterType
~UnwarpSequenceConjugateGradientOperator() override=default
TDVFImageSequence::Pointer GetDisplacementField()
Applies an N-D + time Motion Vector Field to an N-D + time sequence of images.
#define itkSetMacro(name, type)