ITK  4.12.0
Insight Segmentation and Registration Toolkit
itkSpeckleNoiseImageFilter.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 
19 #ifndef itkSpeckleNoiseImageFilter_h
20 #define itkSpeckleNoiseImageFilter_h
21 
23 
24 namespace itk
25 {
26 
53 template <class TInputImage, class TOutputImage=TInputImage>
54 class ITK_TEMPLATE_EXPORT SpeckleNoiseImageFilter :
55  public NoiseBaseImageFilter<TInputImage,TOutputImage >
56 {
57 public:
63 
65  itkNewMacro(Self);
66 
69 
71  typedef typename Superclass::OutputImageType OutputImageType;
72  typedef typename Superclass::OutputImagePointer OutputImagePointer;
73  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
74  typedef typename Superclass::OutputImagePixelType OutputImagePixelType;
75 
77  typedef TInputImage InputImageType;
80  typedef typename InputImageType::RegionType InputImageRegionType;
81  typedef typename InputImageType::PixelType InputImagePixelType;
82 
85  itkGetConstMacro(StandardDeviation, double);
86  itkSetMacro(StandardDeviation, double);
88 
89 #ifdef ITK_USE_CONCEPT_CHECKING
90 
91  itkConceptMacro(InputConvertibleToOutputCheck,
92  (Concept::Convertible<typename TInputImage::PixelType,
93  typename TOutputImage::PixelType>) );
94 
96 #endif
97 
98 protected:
101  }
102 
103  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
104 
105  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
106 
107 private:
108  ITK_DISALLOW_COPY_AND_ASSIGN(SpeckleNoiseImageFilter);
109 
110  double m_StandardDeviation;
111 
112 };
113 } // end namespace itk
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 #include "itkSpeckleNoiseImageFilter.hxx"
117 #endif
118 
119 #endif
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::OutputImagePixelType OutputImagePixelType
Superclass::OutputImagePointer OutputImagePointer
NoiseBaseImageFilter< TInputImage, TOutputImage > Superclass
An Abstract Base class for Noise image filters.
Base class for all process objects that output image data.
SmartPointer< Self > Pointer
Superclass::OutputImageRegionType OutputImageRegionType
SmartPointer< const Self > ConstPointer
Alter an image with speckle (multiplicative) noise.
Superclass::OutputImageType OutputImageType
SmartPointer< const Self > ConstPointer
InputImageType::RegionType InputImageRegionType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
InputImageType::ConstPointer InputImageConstPointer
#define itkConceptMacro(name, concept)
InputImageType::PixelType InputImagePixelType