18 #ifndef sitkResampleImageFilter_h
19 #define sitkResampleImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<uint32_t>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
76 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }\
99 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin);
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing);
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection;
return *
this; }
129 SITK_RETURN_SELF_TYPE_HEADER
SetDefaultPixelValue (
double DefaultPixelValue ) { this->m_DefaultPixelValue = DefaultPixelValue;
return *
this; }
149 SITK_RETURN_SELF_TYPE_HEADER
SetUseNearestNeighborExtrapolator (
bool UseNearestNeighborExtrapolator ) { this->m_UseNearestNeighborExtrapolator = UseNearestNeighborExtrapolator;
return *
this; }
160 std::string
GetName()
const {
return std::string (
"ResampleImageFilter"); }
163 std::string ToString()
const;
172 void SetReferenceImage(
const Image & refImage );
180 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
182 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
189 std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
197 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
200 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
203 std::vector<double> m_OutputDirection{std::vector<double>()};
205 double m_DefaultPixelValue{0.0};
209 bool m_UseNearestNeighborExtrapolator{
false};