ITK  4.6.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 
37 template <class TInputImage, class TOutputImage=TInputImage>
39  public NoiseBaseImageFilter<TInputImage,TOutputImage >
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
53 
59 
61  typedef TInputImage InputImageType;
62  typedef typename InputImageType::Pointer InputImagePointer;
63  typedef typename InputImageType::ConstPointer InputImageConstPointer;
64  typedef typename InputImageType::RegionType InputImageRegionType;
65  typedef typename InputImageType::PixelType InputImagePixelType;
66 
67  itkGetConstMacro(Mean, double);
68  itkSetMacro(Mean, double);
69 
70  itkGetConstMacro(StandardDeviation, double);
71  itkSetMacro(StandardDeviation, double);
72 
73 #ifdef ITK_USE_CONCEPT_CHECKING
74 
75  itkConceptMacro(InputConvertibleToOutputCheck,
76  (Concept::Convertible<typename TInputImage::PixelType,
77  typename TOutputImage::PixelType>) );
78 
80 #endif
81 
82 protected:
85  }
86 
87  void PrintSelf(std::ostream &os, Indent indent) const;
88 
89  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId );
90 
91 private:
92  AdditiveGaussianNoiseImageFilter(const Self&); //purposely not implemented
93  void operator=(const Self&); //purposely not implemented
94 
95  double m_Mean;
97 
98 };
99 
100 } // end namespace itk
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "itkAdditiveGaussianNoiseImageFilter.hxx"
104 #endif
105 
106 #endif
Superclass::OutputImagePointer OutputImagePointer
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
Superclass::OutputImagePixelType OutputImagePixelType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputImageRegionType OutputImageRegionType
Alter an image with additive gaussian white noise.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
Superclass::OutputImageType OutputImageType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159