18 #ifndef sitkInverseDisplacementFieldImageFilter_h
19 #define sitkInverseDisplacementFieldImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<uint32_t>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
72 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }\
77 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin);
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing);
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetSubsamplingFactor (
unsigned int SubsamplingFactor ) { this->m_SubsamplingFactor = SubsamplingFactor;
return *
this; }
105 std::string
GetName()
const {
return std::string (
"InverseDisplacementFieldImageFilter"); }
108 std::string ToString()
const;
117 void SetReferenceImage(
const Image & refImage );
124 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
133 std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
136 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
139 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
141 unsigned int m_SubsamplingFactor{16u};
157 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 );