ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkShotNoiseImageFilter.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 __itkShotNoiseImageFilter_h
19 #define __itkShotNoiseImageFilter_h
20 
22 
23 namespace itk
24 {
25 
39 template <class TInputImage, class TOutputImage=TInputImage>
41  public NoiseBaseImageFilter<TInputImage,TOutputImage >
42 {
43 public:
49 
51  itkNewMacro(Self);
52 
55 
61 
63  typedef TInputImage InputImageType;
64  typedef typename InputImageType::Pointer InputImagePointer;
65  typedef typename InputImageType::ConstPointer InputImageConstPointer;
66  typedef typename InputImageType::RegionType InputImageRegionType;
67  typedef typename InputImageType::PixelType InputImagePixelType;
68 
75  itkGetConstMacro(Scale, double);
76  itkSetMacro(Scale, double);
77 
78 #ifdef ITK_USE_CONCEPT_CHECKING
79 
80  itkConceptMacro(InputConvertibleToOutputCheck,
81  (Concept::Convertible<typename TInputImage::PixelType,
82  typename TOutputImage::PixelType>) );
83 
85 #endif
86 
87 protected:
90  }
91 
92  void PrintSelf(std::ostream &os, Indent indent) const;
93 
94  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId );
95 
96 private:
97  ShotNoiseImageFilter(const Self&); //purposely not implemented
98  void operator=(const Self&); //purposely not implemented
99 
100  double m_Scale;
101 
102 };
103 
104 } // end namespace itk
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 #include "itkShotNoiseImageFilter.hxx"
108 #endif
109 
110 #endif
Superclass::OutputImagePointer OutputImagePointer
InputImageType::Pointer InputImagePointer
InputImageType::RegionType InputImageRegionType
Superclass::OutputImagePointer OutputImagePointer
Alter an image with shot noise.
An Abstract Base class for Noise image filters.
Superclass::OutputImageRegionType OutputImageRegionType
NoiseBaseImageFilter< TInputImage, TOutputImage > Superclass
Base class for all process objects that output image data.
InputImageType::ConstPointer InputImageConstPointer
void operator=(const Self &)
Superclass::OutputImagePixelType OutputImagePixelType
Superclass::OutputImagePixelType OutputImagePixelType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputImageRegionType OutputImageRegionType
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
InputImageType::PixelType InputImagePixelType
#define itkConceptMacro(name, concept)
Superclass::OutputImageType OutputImageType
Superclass::OutputImageType OutputImageType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159