ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkAdditiveGaussianNoiseImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkAdditiveGaussianNoiseImageFilter_h
19 #define itkAdditiveGaussianNoiseImageFilter_h
20 
22 
23 namespace itk
24 {
25 
52 template <class TInputImage, class TOutputImage=TInputImage>
53 class ITK_TEMPLATE_EXPORT AdditiveGaussianNoiseImageFilter :
54  public NoiseBaseImageFilter<TInputImage,TOutputImage >
55 {
56 public:
62 
64  itkNewMacro(Self);
65 
68 
70  typedef typename Superclass::OutputImageType OutputImageType;
71  typedef typename Superclass::OutputImagePointer OutputImagePointer;
72  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
73  typedef typename Superclass::OutputImagePixelType OutputImagePixelType;
74 
76  typedef TInputImage InputImageType;
77  typedef typename InputImageType::Pointer InputImagePointer;
78  typedef typename InputImageType::ConstPointer InputImageConstPointer;
79  typedef typename InputImageType::RegionType InputImageRegionType;
80  typedef typename InputImageType::PixelType InputImagePixelType;
81 
84  itkGetConstMacro(Mean, double);
85  itkSetMacro(Mean, double);
87 
90  itkGetConstMacro(StandardDeviation, double);
91  itkSetMacro(StandardDeviation, double);
93 
94 #ifdef ITK_USE_CONCEPT_CHECKING
95 
96  itkConceptMacro(InputConvertibleToOutputCheck,
97  (Concept::Convertible<typename TInputImage::PixelType,
98  typename TOutputImage::PixelType>) );
99 
101 #endif
102 
103 protected:
105  virtual ~AdditiveGaussianNoiseImageFilter() ITK_OVERRIDE {}
106 
107  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
108 
109  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
110 
111 private:
112  ITK_DISALLOW_COPY_AND_ASSIGN(AdditiveGaussianNoiseImageFilter);
113 
114  double m_Mean;
116 
117 };
118 } // end namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "itkAdditiveGaussianNoiseImageFilter.hxx"
122 #endif
123 
124 #endif
Superclass::OutputImageRegionType OutputImageRegionType
An Abstract Base class for Noise image filters.
Base class for all process objects that output image data.
NoiseBaseImageFilter< TInputImage, TOutputImage > Superclass
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Alter an image with additive Gaussian white noise.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)