18#ifndef elxResamplerBase_h
19#define elxResamplerBase_h
25#include "itkResampleImageFilter.h"
26#include "itkCastImageFilter.h"
76template <
class TElastix>
101 using ITKBaseType = itk::ResampleImageFilter<InputImageType, OutputImageType, CoordRepType>;
123 return &(this->GetSelf());
131 return &(this->GetSelf());
219 template <
typename TResultPixel>
220 itk::SmartPointer<itk::ImageBase<ImageDimension>>
223 const auto castFilter =
224 itk::CastImageFilter<InputImageType, itk::Image<TResultPixel, InputImageType::ImageDimension>>::New();
225 castFilter->SetInput(inputImage);
226 castFilter->Update();
227 return castFilter->GetOutput();
233#ifndef ITK_MANUAL_INSTANTIATION
234# include "elxResamplerBase.hxx"
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
typename ElastixType::RegistrationBaseType RegistrationType
void WriteResultImage(OutputImageType *imageimage, const std::string &filename, const bool showProgress)
typename ITKBaseType::IndexType IndexType
void CreateTransformParameterMap(ParameterMapType ¶meterMap) const
typename ITKBaseType::SpacingType SpacingType
~ResamplerBase() override=default
void AfterRegistrationBase() override
typename ElastixType::MovingImageType OutputImageType
void WriteToFile(std::ostream &transformationParameterInfo) const
elxDeclarePureVirtualGetSelfMacro(ITKBaseType)
const ITKBaseType * GetAsITKBaseType() const
typename ElastixType::ParameterMapType ParameterMapType
typename ITKBaseType::TransformType TransformType
typename ITKBaseType::SizeType SizeType
ITKBaseType * GetAsITKBaseType()
void BeforeRegistrationBase() override
typename ITKBaseType::InterpolatorType InterpolatorType
virtual void CreateItkResultImage()
void AfterEachIterationBase() override
itkStaticConstMacro(ImageDimension, unsigned int, OutputImageType::ImageDimension)
virtual ParameterMapType CreateDerivedTransformParameterMap() const
typename ITKBaseType::OriginPointType OriginPointType
typename ITKBaseType::DirectionType DirectionType
ITK_DISALLOW_COPY_AND_MOVE(ResamplerBase)
virtual void SetComponents()
virtual int BeforeAllTransformix()
typename ITKBaseType::PixelType OutputPixelType
void ResampleAndWriteResultImage(const std::string &filename, const bool showProgress)
typename ElastixType::MovingImageType InputImageType
void AfterEachResolutionBase() override
virtual void ReadFromFile()
itk::SmartPointer< itk::ImageBase< ImageDimension > > CastImage(const InputImageType *const inputImage) const
itk::ResampleImageFilter< InputImageType, OutputImageType, CoordRepType > ITKBaseType