Go to the documentation of this file.
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 );
123 template <
class TImageType>
Image ExecuteInternal ( );
The main Image class for SimpleITK.
PixelIDValueEnum m_OutputPixelType
std::string GetName() const
std::vector< double > GetSpacing() const
std::vector< unsigned int > GetSize() const
PixelIDValueEnum
Enumerated values of pixelIDs.
std::vector< double > m_Direction
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetSpacing(const std::vector< double > &Spacing)
std::vector< double > GetDirection() const
VectorPixelIDTypeList PixelIDTypeList
std::vector< double > m_Spacing
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
#define SITKBasicFilters_EXPORT
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
Self & SetSize(const std::vector< unsigned int > &Size)
Generate an image of the physical locations of each pixel.
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.
PhysicalPointImageSource Self
std::vector< double > GetOrigin() const
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
PixelIDValueEnum GetOutputPixelType() const
@ sitkVectorFloat32
Multi-component of 32 bit float.
std::vector< unsigned int > m_Size
Self & SetDirection(std::vector< double > Direction)
Self & SetOrigin(const std::vector< double > &Origin)
std::vector< double > m_Origin