18#ifndef sitkGaussianImageSource_h
19#define sitkGaussianImageSource_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetSize ( std::vector<unsigned int>
Size ) { this->
m_Size = std::move(
Size);
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetSigma ( std::vector<double> Sigma ) { this->
m_Sigma = std::move(Sigma);
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetSigma(
double value ) { this->
m_Sigma = std::vector<double>(3, value);
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetMean ( std::vector<double>
Mean ) { this->
m_Mean = std::move(
Mean);
return *
this; }
96 SITK_RETURN_SELF_TYPE_HEADER
SetMean(
double value ) { this->
m_Mean = std::vector<double>(3, value);
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
SetScale (
double Scale ) { this->
m_Scale = Scale;
return *
this; }
115 SITK_RETURN_SELF_TYPE_HEADER
SetOrigin ( std::vector<double> Origin ) { this->
m_Origin = std::move(Origin);
return *
this; }
123 SITK_RETURN_SELF_TYPE_HEADER
SetSpacing ( std::vector<double> Spacing ) { this->
m_Spacing = std::move(Spacing);
return *
this; }
152 std::string
GetName()
const {
return std::string (
"GaussianImageSource"); }
178 std::vector<unsigned int>
m_Size{std::vector<unsigned int>(3, 64)};
180 std::vector<double>
m_Sigma{std::vector<double>(3, 16.0)};
182 std::vector<double>
m_Mean{std::vector<double>(3, 32.0)};
186 std::vector<double>
m_Origin{std::vector<double>(3, 0.0)};
188 std::vector<double>
m_Spacing{std::vector<double>(3, 1.0)};
211SITKBasicFilters_EXPORT Image GaussianSource (
PixelIDValueEnum outputPixelType = itk::simple::sitkFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> sigma = std::vector<double>(3, 16.0), std::vector<double> mean = std::vector<double>(3, 32.0),
double scale = 255, 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>(),
bool normalized =
false );
PixelIDValueEnum GetOutputPixelType() const
std::string ToString() const
std::vector< double > m_Mean
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetNormalized(bool Normalized)
std::vector< double > m_Sigma
Self & SetMean(double value)
virtual ~GaussianImageSource()
bool GetNormalized() const
Self & SetMean(std::vector< double > Mean)
Self & SetSigma(std::vector< double > Sigma)
PixelIDValueEnum m_OutputPixelType
std::vector< double > GetMean() const
std::vector< double > GetSpacing() const
Image(Self::*)() MemberFunctionType
std::vector< double > GetSigma() const
std::vector< double > GetDirection() const
Self & SetOrigin(std::vector< double > Origin)
std::vector< unsigned int > GetSize() const
Self & SetSize(std::vector< unsigned int > Size)
Self & SetSpacing(std::vector< double > Spacing)
std::vector< unsigned int > m_Size
Self & SetSigma(double value)
std::vector< double > m_Direction
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
std::string GetName() const
std::vector< double > GetOrigin() const
Self & SetScale(double Scale)
std::vector< double > m_Spacing
std::vector< double > m_Origin
Self & SetDirection(std::vector< double > Direction)
BasicPixelIDTypeList PixelIDTypeList
The Image class for SimpleITK.
Image GaussianSource(PixelIDValueEnum outputPixelType=itk::simple::sitkFloat32, std::vector< unsigned int > size=std::vector< unsigned int >(3, 64), std::vector< double > sigma=std::vector< double >(3, 16.0), std::vector< double > mean=std::vector< double >(3, 32.0), double scale=255, 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 >(), bool normalized=false)
Generate an n-dimensional image of a Gaussian.
Image Mean(const Image &image1, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1))
Applies an averaging filter to an image.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT