18 #ifndef sitkInverseDisplacementFieldImageFilter_h
19 #define sitkInverseDisplacementFieldImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<uint32_t> &
Size ) { this->m_Size = Size;
return *
this; }
74 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }
79 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin (
const std::vector<double> & OutputOrigin ) { this->m_OutputOrigin = OutputOrigin;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing (
const std::vector<double> & OutputSpacing ) { this->m_OutputSpacing = OutputSpacing;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetSubsamplingFactor (
unsigned int SubsamplingFactor ) { this->m_SubsamplingFactor = SubsamplingFactor;
return *
this; }
106 std::string
GetName()
const {
return std::string (
"InverseDisplacementFieldImageFilter"); }
109 std::string ToString()
const;
117 Image Execute (
const Image& image1,
const std::vector<uint32_t> & size,
const std::vector<double> & outputOrigin,
const std::vector<double> & outputSpacing,
unsigned int subsamplingFactor );
121 void SetReferenceImage(
const Image & refImage );
127 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
128 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
155 SITKBasicFilters_EXPORT Image InverseDisplacementField (
const Image& image1,
const std::vector<uint32_t> & size = std::vector<uint32_t>(3, 0),
const std::vector<double> & outputOrigin = std::vector<double>(3, 0.0),
const std::vector<double> & outputSpacing = std::vector<double>(3, 1.0),
unsigned int subsamplingFactor = 16u );
Self & SetOutputSpacing(const std::vector< double > &OutputSpacing)
std::vector< uint32_t > m_Size
#define SITKBasicFilters_EXPORT
Image InverseDisplacementField(const Image &image1, const std::vector< uint32_t > &size=std::vector< uint32_t >(3, 0), const std::vector< double > &outputOrigin=std::vector< double >(3, 0.0), const std::vector< double > &outputSpacing=std::vector< double >(3, 1.0), unsigned int subsamplingFactor=16u)
Computes the inverse of a displacement field.
Self & SetSubsamplingFactor(unsigned int SubsamplingFactor)
Computes the inverse of a displacement field.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
InverseDisplacementFieldImageFilter Self
std::vector< uint32_t > GetSize() const
std::vector< double > GetOutputOrigin() const
std::string GetName() const
std::vector< double > m_OutputOrigin
Self & SetOutputOrigin(const std::vector< double > &OutputOrigin)
unsigned int GetSubsamplingFactor() const
unsigned int m_SubsamplingFactor
std::vector< double > GetOutputSpacing() const
The Image class for SimpleITK.
std::vector< double > m_OutputSpacing
Self & SetSize(const std::vector< uint32_t > &Size)
typelist::MakeTypeList< VectorPixelID< float >, VectorPixelID< double > >::Type RealVectorPixelIDTypeList
RealVectorPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.