ITK  6.0.0
Insight Toolkit
itkNoiseImageFilter.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 #ifndef itkNoiseImageFilter_h
19 #define itkNoiseImageFilter_h
20 
21 #include "itkBoxImageFilter.h"
22 #include "itkImage.h"
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
50 template <typename TInputImage, typename TOutputImage>
51 class ITK_TEMPLATE_EXPORT NoiseImageFilter : public BoxImageFilter<TInputImage, TOutputImage>
52 {
53 public:
54  ITK_DISALLOW_COPY_AND_MOVE(NoiseImageFilter);
55 
57  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
58  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
59 
61  using InputImageType = TInputImage;
62  using OutputImageType = TOutputImage;
63 
69 
71  itkNewMacro(Self);
72 
74  itkOverrideGetNameOfClassMacro(NoiseImageFilter);
75 
77  using InputPixelType = typename InputImageType::PixelType;
78  using OutputPixelType = typename OutputImageType::PixelType;
80 
83 
85 
86 #ifdef ITK_USE_CONCEPT_CHECKING
87  // Begin concept checking
88  itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<InputPixelType>));
89  // End concept checking
90 #endif
91 
92 protected:
94  ~NoiseImageFilter() override = default;
95 
106  void
107  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
108 };
109 } // end namespace itk
112 #ifndef ITK_MANUAL_INSTANTIATION
113 # include "itkNoiseImageFilter.hxx"
114 #endif
115 
116 #endif
itk::Concept::HasNumericTraits
Definition: itkConceptChecking.h:717
itk::BoxImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition: itkBoxImageFilter.h:67
itk::NoiseImageFilter
Calculate the local noise in an image.
Definition: itkNoiseImageFilter.h:51
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itkImage.h
itk::SmartPointer< Self >
itk::BoxImageFilter
A base class for all the filters working on a box neighborhood.
Definition: itkBoxImageFilter.h:40
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::BoxImageFilter::InputPixelType
typename TInputImage::PixelType InputPixelType
Definition: itkBoxImageFilter.h:64
itk::NoiseImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkNoiseImageFilter.h:84
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::NumericTraits
Define additional traits for native types such as int or float.
Definition: itkNumericTraits.h:60
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itkBoxImageFilter.h
itkNumericTraits.h
itk::NoiseImageFilter::InputRealType
typename NumericTraits< InputPixelType >::RealType InputRealType
Definition: itkNoiseImageFilter.h:79
itk::ImageToImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90