Go to the documentation of this file.
18 #ifndef sitkAdditiveGaussianNoiseImageFilter_h
19 #define sitkAdditiveGaussianNoiseImageFilter_h
79 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviation (
double StandardDeviation ) { this->m_StandardDeviation = StandardDeviation;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetMean (
double Mean ) { this->m_Mean =
Mean;
return *
this; }
94 double GetMean()
const {
return this->m_Mean; }\
98 SITK_RETURN_SELF_TYPE_HEADER
SetSeed ( uint32_t Seed ) { this->m_Seed = Seed;
return *
this; }
102 uint32_t
GetSeed()
const {
return this->m_Seed; }
105 std::string
GetName()
const {
return std::string (
"AdditiveGaussianNoiseImageFilter"); }
108 std::string ToString()
const;
122 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
124 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
131 double m_StandardDeviation{1.0};
138 bool m_InPlace{
false};
The Image class for SimpleITK.
Image(Self::*)(const Image &image1) MemberFunctionType
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetStandardDeviation() const
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
Alter an image with additive Gaussian white noise.
Self & SetMean(double Mean)
std::string GetName() const
Image Mean(const Image &image1, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1))
Applies an averaging filter to an image.
BasicPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
Self & SetStandardDeviation(double StandardDeviation)
Image AdditiveGaussianNoise(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.
The base interface for SimpleITK filters that take one input image.
Self & SetSeed(uint32_t Seed)