18 #ifndef sitkResampleImageFilter_h
19 #define sitkResampleImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<uint32_t>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
77 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }\
100 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin);
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing);
return *
this; }
120 SITK_RETURN_SELF_TYPE_HEADER
SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection;
return *
this; }
130 SITK_RETURN_SELF_TYPE_HEADER
SetDefaultPixelValue (
double DefaultPixelValue ) { this->m_DefaultPixelValue = DefaultPixelValue;
return *
this; }
150 SITK_RETURN_SELF_TYPE_HEADER
SetUseNearestNeighborExtrapolator (
bool UseNearestNeighborExtrapolator ) { this->m_UseNearestNeighborExtrapolator = UseNearestNeighborExtrapolator;
return *
this; }
161 std::string
GetName()
const {
return std::string (
"ResampleImageFilter"); }
164 std::string ToString()
const;
173 void SetReferenceImage(
const Image & refImage );
181 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
183 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
190 std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
198 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
201 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
204 std::vector<double> m_OutputDirection{std::vector<double>()};
206 double m_DefaultPixelValue{0.0};
210 bool m_UseNearestNeighborExtrapolator{
false};