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