18 #ifndef sitkResampleImageFilter_h
19 #define sitkResampleImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<uint32_t> &
Size ) { this->m_Size = Size;
return *
this; }
77 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }
100 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin (
const std::vector<double> & OutputOrigin ) { this->m_OutputOrigin = OutputOrigin;
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing (
const std::vector<double> & OutputSpacing ) { this->m_OutputSpacing = 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; }
147 std::string
GetName()
const {
return std::string (
"ResampleImageFilter"); }
150 std::string ToString()
const;
158 Image Execute (
const Image& image1,
const std::vector<uint32_t> & size,
Transform transform,
InterpolatorEnum interpolator,
const std::vector<double> & outputOrigin,
const std::vector<double> & outputSpacing, std::vector<double> outputDirection,
double defaultPixelValue,
PixelIDValueEnum outputPixelType );
162 void SetReferenceImage(
const Image & refImage );
167 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
170 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
172 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
std::vector< double > m_OutputSpacing
#define SITKBasicFilters_EXPORT
Self & SetDefaultPixelValue(double DefaultPixelValue)
Self & SetOutputOrigin(const std::vector< double > &OutputOrigin)
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
std::string GetName() const
Self & SetOutputDirection(std::vector< double > OutputDirection)
Self & SetInterpolator(InterpolatorEnum Interpolator)
Self & SetTransform(Transform Transform)
Transform GetTransform() const
PixelIDValueEnum
Enumerated values of pixelIDs.
double m_DefaultPixelValue
Self & SetSize(const std::vector< uint32_t > &Size)
Resample an image via a coordinate transform.
std::vector< double > m_OutputOrigin
std::vector< uint32_t > m_Size
std::vector< double > GetOutputOrigin() const
Self & SetOutputSpacing(const std::vector< double > &OutputSpacing)
PixelIDValueEnum m_OutputPixelType
double GetDefaultPixelValue() const
std::vector< double > GetOutputSpacing() const
std::vector< double > m_OutputDirection
The Image class for SimpleITK.
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, if sitkUnknown then the input type is used.
BasicPixelIDTypeList PixelIDTypeList
std::vector< double > GetOutputDirection() const
InterpolatorEnum GetInterpolator() const
The base interface for SimpleITK filters that take one input image.
InterpolatorEnum m_Interpolator
std::vector< uint32_t > GetSize() const