18 #ifndef sitkGridImageSource_h
19 #define sitkGridImageSource_h
86 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<unsigned int>
Size ) { this->m_Size = std::move(
Size);
return *
this; }
90 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }\
95 SITK_RETURN_SELF_TYPE_HEADER
SetSigma ( std::vector<double> Sigma ) { this->m_Sigma = std::move(Sigma);
return *
this; }
98 SITK_RETURN_SELF_TYPE_HEADER
SetSigma(
double value ) { this->m_Sigma = std::vector<double>(3, value);
return *
this; }
103 std::vector<double>
GetSigma()
const {
return this->m_Sigma; }\
108 SITK_RETURN_SELF_TYPE_HEADER
SetGridSpacing ( std::vector<double> GridSpacing ) { this->m_GridSpacing = std::move(GridSpacing);
return *
this; }
118 SITK_RETURN_SELF_TYPE_HEADER
SetGridOffset ( std::vector<double> GridOffset ) { this->m_GridOffset = std::move(GridOffset);
return *
this; }
128 SITK_RETURN_SELF_TYPE_HEADER
SetScale (
double Scale ) { this->m_Scale = Scale;
return *
this; }
137 SITK_RETURN_SELF_TYPE_HEADER
SetOrigin ( std::vector<double> Origin ) { this->m_Origin = std::move(Origin);
return *
this; }
141 std::vector<double>
GetOrigin()
const {
return this->m_Origin; }\
145 SITK_RETURN_SELF_TYPE_HEADER
SetSpacing ( std::vector<double> Spacing ) { this->m_Spacing = std::move(Spacing);
return *
this; }
149 std::vector<double>
GetSpacing()
const {
return this->m_Spacing; }\
153 SITK_RETURN_SELF_TYPE_HEADER
SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction;
return *
this; }
157 std::vector<double>
GetDirection()
const {
return this->m_Direction; }\
162 SITK_RETURN_SELF_TYPE_HEADER
SetWhichDimensions ( std::vector<bool> WhichDimensions ) { this->m_WhichDimensions = std::move(WhichDimensions);
return *
this; }
170 std::string
GetName()
const {
return std::string (
"GridImageSource"); }
173 std::string ToString()
const;
186 template <
class TImageType>
Image ExecuteInternal ( );
196 std::vector<unsigned int> m_Size{std::vector<unsigned int>(3, 64)};
198 std::vector<double> m_Sigma{std::vector<double>(3, 0.5)};
200 std::vector<double> m_GridSpacing{std::vector<double>(3, 4.0)};
202 std::vector<double> m_GridOffset{std::vector<double>(3, 0.0)};
204 double m_Scale{255.0};
206 std::vector<double> m_Origin{std::vector<double>(3, 0.0)};
208 std::vector<double> m_Spacing{std::vector<double>(3, 1.0)};
211 std::vector<double> m_Direction{std::vector<double>()};
213 std::vector<bool> m_WhichDimensions{std::vector<bool>(3,
true)};
231 SITKBasicFilters_EXPORT Image GridSource (
PixelIDValueEnum outputPixelType =
itk::simple::sitkFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> sigma = std::vector<double>(3, 0.5), std::vector<double> gridSpacing = std::vector<double>(3, 4.0), std::vector<double> gridOffset = std::vector<double>(3, 0.0),
double scale = 255.0, 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>(), std::vector<bool> whichDimensions = std::vector<bool>(3,
true) );