18 #ifndef sitkPhysicalPointImageSource_h
19 #define sitkPhysicalPointImageSource_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<unsigned int>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
73 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }\
77 SITK_RETURN_SELF_TYPE_HEADER
SetOrigin ( std::vector<double> Origin ) { this->m_Origin = std::move(Origin);
return *
this; }
81 std::vector<double>
GetOrigin()
const {
return this->m_Origin; }\
85 SITK_RETURN_SELF_TYPE_HEADER
SetSpacing ( std::vector<double> Spacing ) { this->m_Spacing = std::move(Spacing);
return *
this; }
89 std::vector<double>
GetSpacing()
const {
return this->m_Spacing; }\
93 SITK_RETURN_SELF_TYPE_HEADER
SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction;
return *
this; }
97 std::vector<double>
GetDirection()
const {
return this->m_Direction; }
100 std::string
GetName()
const {
return std::string (
"PhysicalPointImageSource"); }
103 std::string ToString()
const;
112 void SetReferenceImage(
const Image & refImage );
120 template <
class TImageType>
Image ExecuteInternal ( );
130 std::vector<unsigned int> m_Size{std::vector<unsigned int>(3, 64)};
132 std::vector<double> m_Origin{std::vector<double>(3, 0.0)};
134 std::vector<double> m_Spacing{std::vector<double>(3, 1.0)};
137 std::vector<double> m_Direction{std::vector<double>()};
155 SITKBasicFilters_EXPORT Image PhysicalPointSource (
PixelIDValueEnum outputPixelType = itk::simple::sitkVectorFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> origin = std::vector<double>(3, 0.0), std::vector<double> spacing = std::vector<double>(3, 1.0), std::vector<double> direction = std::vector<double>() );