18 #ifndef sitkAdditiveGaussianNoiseImageFilter_h
19 #define sitkAdditiveGaussianNoiseImageFilter_h
77 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviation (
double StandardDeviation ) { this->m_StandardDeviation = StandardDeviation;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetMean (
double Mean ) { this->m_Mean =
Mean;
return *
this; }
92 double GetMean()
const {
return this->m_Mean; }
96 SITK_RETURN_SELF_TYPE_HEADER
SetSeed (
uint32_t Seed ) { this->m_Seed = Seed;
return *
this; }
102 std::string
GetName()
const {
return std::string (
"AdditiveGaussianNoiseImageFilter"); }
105 std::string ToString()
const;
113 Image Execute (
const Image& image1,
double standardDeviation,
double mean,
uint32_t seed );
120 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
121 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
124 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
Self & SetStandardDeviation(double StandardDeviation)
#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
Alter an image with additive Gaussian white noise.
AdditiveGaussianNoiseImageFilter Self
Self & SetSeed(uint32_t Seed)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BasicPixelIDTypeList PixelIDTypeList
Image Mean(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
Applies an averaging filter to an image.
The main Image class for SimpleITK.
std::string GetName() const
Self & SetMean(double Mean)
double GetStandardDeviation() const
The base interface for SimpleITK filters that take one input image.
Image AdditiveGaussianNoise(const Image &image1, double standardDeviation=1.0, double mean=0.0, uint32_t seed=(uint32_t) itk::simple::sitkWallClock)
Alter an image with additive Gaussian white noise.
double m_StandardDeviation