Go to the documentation of this file.
18 #ifndef sitkAdditiveGaussianNoiseImageFilter_h
19 #define sitkAdditiveGaussianNoiseImageFilter_h
80 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviation (
double StandardDeviation ) { this->m_StandardDeviation = StandardDeviation;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetMean (
double Mean ) { this->m_Mean =
Mean;
return *
this; }
95 double GetMean()
const {
return this->m_Mean; }\
99 SITK_RETURN_SELF_TYPE_HEADER
SetSeed (
uint32_t Seed ) { this->m_Seed = Seed;
return *
this; }
106 std::string
GetName()
const {
return std::string (
"AdditiveGaussianNoiseImageFilter"); }
109 std::string ToString()
const;
123 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
125 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
132 double m_StandardDeviation{1.0};
139 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
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.
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)