18 #ifndef sitkGridImageSource_h
19 #define sitkGridImageSource_h
76 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
80 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
85 SITK_RETURN_SELF_TYPE_HEADER
SetSigma (
const std::vector<double> & Sigma ) { this->m_Sigma = Sigma;
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SetSigma(
double value ) { this->m_Sigma = std::vector<double>(3, value);
return *
this; }
94 std::vector<double>
GetSigma()
const {
return this->m_Sigma; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetGridSpacing (
const std::vector<double> & GridSpacing ) { this->m_GridSpacing = GridSpacing;
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetGridOffset (
const std::vector<double> & GridOffset ) { this->m_GridOffset = GridOffset;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetScale (
double Scale ) { this->m_Scale = Scale;
return *
this; }
128 SITK_RETURN_SELF_TYPE_HEADER
SetOrigin (
const std::vector<double> & Origin ) { this->m_Origin = Origin;
return *
this; }
132 std::vector<double>
GetOrigin()
const {
return this->m_Origin; }
136 SITK_RETURN_SELF_TYPE_HEADER
SetSpacing (
const std::vector<double> & Spacing ) { this->m_Spacing = Spacing;
return *
this; }
140 std::vector<double>
GetSpacing()
const {
return this->m_Spacing; }
144 SITK_RETURN_SELF_TYPE_HEADER
SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction;
return *
this; }
150 std::string
GetName()
const {
return std::string (
"GridImageSource"); }
153 std::string ToString()
const;
161 Image Execute (
PixelIDValueEnum outputPixelType,
const std::vector<unsigned int> & size,
const std::vector<double> & sigma,
const std::vector<double> & gridSpacing,
const std::vector<double> & gridOffset,
double scale,
const std::vector<double> & origin,
const std::vector<double> & spacing, std::vector<double> direction );
168 typedef Image (Self::*MemberFunctionType)( );
169 template <
class TImageType>
Image ExecuteInternal ( );
202 SITKBasicFilters_EXPORT Image GridSource (
PixelIDValueEnum outputPixelType =
itk::simple::sitkFloat32,
const std::vector<unsigned int> & size = std::vector<unsigned int>(3, 64),
const std::vector<double> & sigma = std::vector<double>(3, 0.5),
const std::vector<double> & gridSpacing = std::vector<double>(3, 4.0),
const std::vector<double> & gridOffset = std::vector<double>(3, 0.0),
double scale = 255.0,
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>() );
Self & SetGridSpacing(const std::vector< double > &GridSpacing)
std::vector< double > m_Spacing
std::vector< double > GetOrigin() const
std::vector< double > GetDirection() const
#define SITKBasicFilters_EXPORT
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
Self & SetDirection(std::vector< double > Direction)
Self & SetSpacing(const std::vector< double > &Spacing)
Self & SetOrigin(const std::vector< double > &Origin)
PixelIDValueEnum
Enumerated values of pixelIDs.
std::vector< double > GetSpacing() const
Generate an n-dimensional image of a grid.
Self & SetSize(const std::vector< unsigned int > &Size)
PixelIDValueEnum GetOutputPixelType() const
std::vector< double > m_GridSpacing
BasicPixelIDTypeList PixelIDTypeList
std::vector< double > GetGridOffset() const
std::vector< double > m_Sigma
std::vector< double > GetGridSpacing() const
The Image class for SimpleITK.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetSigma(double value)
std::vector< double > GetSigma() const
Self & SetScale(double Scale)
Self & SetGridOffset(const std::vector< double > &GridOffset)
std::vector< unsigned int > m_Size
Self & SetSigma(const std::vector< double > &Sigma)
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
PixelIDValueEnum m_OutputPixelType
std::vector< unsigned int > GetSize() const
std::vector< double > m_Direction
The base interface for SimpleITK filters that take one input image.
Image GridSource(PixelIDValueEnum outputPixelType=itk::simple::sitkFloat32, const std::vector< unsigned int > &size=std::vector< unsigned int >(3, 64), const std::vector< double > &sigma=std::vector< double >(3, 0.5), const std::vector< double > &gridSpacing=std::vector< double >(3, 4.0), const std::vector< double > &gridOffset=std::vector< double >(3, 0.0), double scale=255.0, 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 n-dimensional image of a grid.
std::vector< double > m_GridOffset
std::string GetName() const
std::vector< double > m_Origin