18 #ifndef sitkInverseDisplacementFieldImageFilter_h
19 #define sitkInverseDisplacementFieldImageFilter_h
68 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<uint32_t>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
73 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }\
78 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin);
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing);
return *
this; }
98 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;
118 void SetReferenceImage(
const Image & refImage );
125 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
134 std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
137 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
140 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
142 unsigned int m_SubsamplingFactor{16u};
158 SITKBasicFilters_EXPORT Image InverseDisplacementField (
const Image& image1, std::vector<uint32_t> size = std::vector<uint32_t>(3, 0), std::vector<double> outputOrigin = std::vector<double>(3, 0.0), std::vector<double> outputSpacing = std::vector<double>(3, 1.0),
unsigned int subsamplingFactor = 16u );