18 #ifndef sitkPhysicalPointImageSource_h
19 #define sitkPhysicalPointImageSource_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
74 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
78 SITK_RETURN_SELF_TYPE_HEADER
SetOrigin (
const std::vector<double> & Origin ) { this->m_Origin = Origin;
return *
this; }
82 std::vector<double>
GetOrigin()
const {
return this->m_Origin; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetSpacing (
const std::vector<double> & Spacing ) { this->m_Spacing = Spacing;
return *
this; }
90 std::vector<double>
GetSpacing()
const {
return this->m_Spacing; }
94 SITK_RETURN_SELF_TYPE_HEADER
SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction;
return *
this; }
98 std::vector<double>
GetDirection()
const {
return this->m_Direction; }
100 std::string
GetName()
const {
return std::string (
"PhysicalPointImageSource"); }
103 std::string ToString()
const;
111 Image Execute (
PixelIDValueEnum outputPixelType,
const std::vector<unsigned int> & size,
const std::vector<double> & origin,
const std::vector<double> & spacing, std::vector<double> direction );
115 void SetReferenceImage(
const Image & refImage );
122 typedef Image (Self::*MemberFunctionType)( );
123 template <
class TImageType>
Image ExecuteInternal ( );
Self & SetSpacing(const std::vector< double > &Spacing)
std::vector< double > m_Direction
std::vector< double > GetSpacing() const
#define SITKBasicFilters_EXPORT
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
PixelIDValueEnum
Enumerated values of pixelIDs.
std::vector< unsigned int > GetSize() const
std::string GetName() const
PixelIDValueEnum GetOutputPixelType() const
Self & SetDirection(std::vector< double > Direction)
PhysicalPointImageSource Self
Self & SetOrigin(const std::vector< double > &Origin)
std::vector< unsigned int > m_Size
The main Image class for SimpleITK.
PixelIDValueEnum m_OutputPixelType
Self & SetSize(const std::vector< unsigned int > &Size)
Multi-component of 32 bit float.
std::vector< double > GetOrigin() const
typelist::MakeTypeList< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > >::Type VectorPixelIDTypeList
Generate an image of the physical locations of each pixel.
VectorPixelIDTypeList PixelIDTypeList
std::vector< double > GetDirection() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image PhysicalPointSource(PixelIDValueEnum outputPixelType=itk::simple::sitkVectorFloat32, const std::vector< unsigned int > &size=std::vector< unsigned int >(3, 64), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &spacing=std::vector< double >(3, 1.0), std::vector< double > direction=std::vector< double >())
Generate an image of the physical locations of each pixel.
The base interface for SimpleITK filters that take one input image.
std::vector< double > m_Origin
std::vector< double > m_Spacing