19 #ifndef rtkUnwarpSequenceImageFilter_h 20 #define rtkUnwarpSequenceImageFilter_h 73 template <
typename TImageSequence,
74 typename TDVFImageSequence =
76 TImageSequence::ImageDimension>,
77 typename TImage =
itk::Image<
typename TImageSequence::ValueType, TImageSequence::ImageDimension - 1>,
80 TImageSequence::ImageDimension - 1>>
95 #ifdef itkOverrideGetNameOfClassMacro 110 typedef typename std::conditional<std::is_same<TImageSequence, CPUImageSequence>::value,
113 typedef typename std::conditional<std::is_same<TImageSequence, CPUImageSequence>::value,
123 SetDisplacementField(
const TDVFImageSequence * DVFs);
126 typename TDVFImageSequence::Pointer
127 GetDisplacementField();
131 itkGetMacro(NumberOfIterations,
float);
136 itkGetMacro(PhaseShift,
float);
139 itkSetMacro(UseNearestNeighborInterpolationInWarping,
bool);
140 itkGetMacro(UseNearestNeighborInterpolationInWarping,
bool);
143 itkGetMacro(CudaConjugateGradient,
bool);
147 itkGetMacro(UseCudaCyclicDeformation,
bool);
156 GenerateData()
override;
177 GenerateInputRequestedRegion()
override;
179 GenerateOutputInformation()
override;
192 #ifndef ITK_MANUAL_INSTANTIATION 193 # include "rtkUnwarpSequenceImageFilter.hxx"
bool m_CudaConjugateGradient
Implements the operator A used in the conjugate gradient unwarp sequence filter.
CGOperatorFilterType::Pointer m_CGOperator
Generate an n-dimensional image with constant pixel values.
Applies an N-D + time Motion Vector Field to an N-D + time sequence of images.
Finds the image sequence that, once warped, equals the input image sequence.
unsigned int m_NumberOfIterations
bool m_UseCudaCyclicDeformation
#define itkSetMacro(name, type)
ConstantSourceType::Pointer m_ConstantSource
bool m_UseNearestNeighborInterpolationInWarping
typename itk::Image< typename TImageSequence::PixelType, TImageSequence::ImageDimension > CPUImageSequence
ConjugateGradientFilterType::Pointer m_ConjugateGradientFilter
Solves AX = B by conjugate gradient.
void VerifyInputInformation() const override
WarpForwardFilterType::Pointer m_WarpForwardFilter