Go to the documentation of this file.
18 #ifndef sitkResampleImageFilter_h
19 #define sitkResampleImageFilter_h
82 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<uint32_t> &
Size ) { this->m_Size =
Size;
return *
this; }
87 std::vector<uint32_t>
GetSize()
const {
return this->m_Size; }
112 SITK_RETURN_SELF_TYPE_HEADER
SetOutputOrigin (
const std::vector<double> & OutputOrigin ) { this->m_OutputOrigin = OutputOrigin;
return *
this; }
122 SITK_RETURN_SELF_TYPE_HEADER
SetOutputSpacing (
const std::vector<double> & OutputSpacing ) { this->m_OutputSpacing = OutputSpacing;
return *
this; }
132 SITK_RETURN_SELF_TYPE_HEADER
SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection;
return *
this; }
142 SITK_RETURN_SELF_TYPE_HEADER
SetDefaultPixelValue (
double DefaultPixelValue ) { this->m_DefaultPixelValue = DefaultPixelValue;
return *
this; }
159 std::string
GetName()
const {
return std::string (
"ResampleImageFilter"); }
162 std::string ToString()
const;
170 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 );
174 void SetReferenceImage(
const Image & refImage );
182 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image& image1 );
184 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternalVector (
const Image& image1 );
The main Image class for SimpleITK.
std::vector< double > GetOutputDirection() const
std::vector< double > GetOutputOrigin() const
std::string GetName() const
Self & SetSize(const std::vector< uint32_t > &Size)
std::vector< uint32_t > m_Size
std::vector< double > m_OutputOrigin
Transform GetTransform() const
Self & SetDefaultPixelValue(double DefaultPixelValue)
PixelIDValueEnum
Enumerated values of pixelIDs.
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
PixelIDValueEnum m_OutputPixelType
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Self & SetOutputOrigin(const std::vector< double > &OutputOrigin)
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Resample an image via a coordinate transform.
double GetDefaultPixelValue() const
#define SITKBasicFilters_EXPORT
double m_DefaultPixelValue
InterpolatorEnum m_Interpolator
Self & SetTransform(Transform Transform)
std::vector< double > GetOutputSpacing() const
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, if sitkUnknown then the input type is used.
InterpolatorEnum GetInterpolator() const
Self & SetOutputDirection(std::vector< double > OutputDirection)
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
std::vector< double > m_OutputSpacing
std::vector< uint32_t > GetSize() const
std::vector< double > m_OutputDirection
Self & SetOutputSpacing(const std::vector< double > &OutputSpacing)
Self & SetInterpolator(InterpolatorEnum Interpolator)
BasicPixelIDTypeList PixelIDTypeList