ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpeckleNoiseImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
24namespace itk
25{
26
54template <class TInputImage, class TOutputImage = TInputImage>
55class ITK_TEMPLATE_EXPORT SpeckleNoiseImageFilter : public NoiseBaseImageFilter<TInputImage, TOutputImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(SpeckleNoiseImageFilter);
59
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(SpeckleNoiseImageFilter);
71
73 using typename Superclass::OutputImageType;
74 using typename Superclass::OutputImagePointer;
77
79 using InputImageType = TInputImage;
80 using InputImagePointer = typename InputImageType::Pointer;
81 using InputImageConstPointer = typename InputImageType::ConstPointer;
82 using InputImageRegionType = typename InputImageType::RegionType;
83 using InputImagePixelType = typename InputImageType::PixelType;
84
87 itkGetConstMacro(StandardDeviation, double);
88 itkSetMacro(StandardDeviation, double);
90
91 itkConceptMacro(InputConvertibleToOutputCheck,
93
94protected:
96 ~SpeckleNoiseImageFilter() override = default;
97
98 void
99 PrintSelf(std::ostream & os, Indent indent) const override;
100
101 void
102 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) override;
103
104private:
105 double m_StandardDeviation{ 1.0 };
106};
107} // end namespace itk
108
109#ifndef ITK_MANUAL_INSTANTIATION
110# include "itkSpeckleNoiseImageFilter.hxx"
111#endif
112
113#endif
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
typename OutputImageType::PixelType OutputImagePixelType
Implements transparent reference counting.
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
NoiseBaseImageFilter< TInputImage, TOutputImage > Superclass
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::ConstPointer InputImageConstPointer
~SpeckleNoiseImageFilter() override=default
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType