19 #ifndef rtkWarpSequenceImageFilter_h 20 #define rtkWarpSequenceImageFilter_h 89 template <
typename TImageSequence,
90 typename TDVFImageSequence =
92 TImageSequence::ImageDimension>,
93 typename TImage =
itk::Image<
typename TImageSequence::ValueType, TImageSequence::ImageDimension - 1>,
96 TImageSequence::ImageDimension - 1>>
115 typename std::conditional<std::is_same<TImage, CPUImageType>::value,
CPUWarpFilterType, CudaWarpImageFilter>::type
117 typedef typename std::conditional<std::is_same<TImage, CPUImageType>::value,
120 typedef typename std::conditional<std::is_same<TImage, CPUImageType>::value,
130 #ifdef itkOverrideGetNameOfClassMacro 139 SetDisplacementField(
const TDVFImageSequence * DVFs);
142 typename TDVFImageSequence::Pointer
143 GetDisplacementField();
146 itkGetMacro(ForwardWarp,
bool);
152 itkGetMacro(PhaseShift,
float);
156 itkSetMacro(UseNearestNeighborInterpolationInWarping,
bool);
157 itkGetMacro(UseNearestNeighborInterpolationInWarping,
bool);
162 itkGetMacro(UseCudaCyclicDeformation,
bool);
180 GenerateData()
override;
207 GenerateOutputInformation()
override;
209 GenerateInputRequestedRegion()
override;
218 #ifndef ITK_MANUAL_INSTANTIATION 219 # include "rtkWarpSequenceImageFilter.hxx"
bool m_UseCudaCyclicDeformation
bool m_UseNearestNeighborInterpolationInWarping
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.
typename itk::Image< typename TImage::PixelType, TImage::ImageDimension > CPUImageType
CPUWarpFilterType::Pointer m_WarpFilter
DVFInterpolatorType::Pointer m_DVFInterpolatorFilter
PasteFilterType::Pointer m_PasteFilter
ExtractFilterType::Pointer m_ExtractFilter
TImageSequence::RegionType m_ExtractAndPasteRegion
#define itkSetMacro(name, type)
Warps an image using splat instead of interpolation.
void VerifyInputInformation() const override
typename itk::WarpImageFilter< TImage, TImage, TDVFImage > CPUWarpFilterType
ConstantImageSourceType::Pointer m_ConstantSource
Mother class for cone beam reconstruction filters which need runtime selection of their forward and b...
CastFilterType::Pointer m_CastFilter
CPUWarpFilterType WarpFilterType