18 #ifndef sitkTransformToDisplacementFieldFilter_h
19 #define sitkTransformToDisplacementFieldFilter_h
81 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<unsigned int>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
86 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }\
91 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin);
return *
this; }
101 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing);
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection;
return *
this; }
119 std::string
GetName()
const {
return std::string (
"TransformToDisplacementFieldFilter"); }
122 std::string ToString()
const;
131 void SetReferenceImage(
const Image & refImage );
139 template <
class TImageType>
Image ExecuteInternal (
const Transform * transform );
149 std::vector<unsigned int> m_Size{std::vector<unsigned int>(3, 64)};
151 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
153 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
156 std::vector<double> m_OutputDirection{std::vector<double>()};
174 SITKBasicFilters_EXPORT Image TransformToDisplacementField (
const Transform & transform,
PixelIDValueEnum outputPixelType = itk::simple::sitkVectorFloat64, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> outputOrigin = std::vector<double>(3, 0.0), std::vector<double> outputSpacing = std::vector<double>(3, 1.0), std::vector<double> outputDirection = std::vector<double>() );