18 #ifndef sitkTransformToDisplacementFieldFilter_h
19 #define sitkTransformToDisplacementFieldFilter_h
81 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
86 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin (
const std::vector<double> & OutputOrigin ) { this->m_OutputOrigin = OutputOrigin;
return *
this; }
101 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing (
const std::vector<double> & OutputSpacing ) { this->m_OutputSpacing = OutputSpacing;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection;
return *
this; }
118 std::string
GetName()
const {
return std::string (
"TransformToDisplacementFieldFilter"); }
121 std::string ToString()
const;
129 Image Execute (
const Transform & transform,
PixelIDValueEnum outputPixelType,
const std::vector<unsigned int> & size,
const std::vector<double> & outputOrigin,
const std::vector<double> & outputSpacing, std::vector<double> outputDirection );
133 void SetReferenceImage(
const Image & refImage );
141 template <
class TImageType>
Image ExecuteInternal (
const Transform * transform );
Multi-component of 64 bit float.
#define SITKBasicFilters_EXPORT
PixelIDValueEnum
Enumerated values of pixelIDs.
The main Image class for SimpleITK.
Image TransformToDisplacementField(const Transform &transform, PixelIDValueEnum outputPixelType=itk::simple::sitkVectorFloat64, const std::vector< unsigned int > &size=std::vector< unsigned int >(3, 64), const std::vector< double > &outputOrigin=std::vector< double >(3, 0.0), const std::vector< double > &outputSpacing=std::vector< double >(3, 1.0), std::vector< double > outputDirection=std::vector< double >())
Generate a displacement field from a coordinate transform.
typelist::MakeTypeList< VectorPixelID< float >, VectorPixelID< double > >::Type RealVectorPixelIDTypeList
The base interface for SimpleITK filters that take one input image.