ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkNoiseImageFilter.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 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:
52  public BoxImageFilter< TInputImage, TOutputImage >
53 {
54 public:
55  ITK_DISALLOW_COPY_AND_ASSIGN(NoiseImageFilter);
56 
58  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
59  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
60 
62  using InputImageType = TInputImage;
63  using OutputImageType = TOutputImage;
64 
70 
72  itkNewMacro(Self);
73 
75  itkTypeMacro(NoiseImageFilter, BoxImageFilter);
76 
78  using InputPixelType = typename InputImageType::PixelType;
79  using OutputPixelType = typename OutputImageType::PixelType;
81 
84 
86 
87 #ifdef ITK_USE_CONCEPT_CHECKING
88  // Begin concept checking
89  itkConceptMacro( InputHasNumericTraitsCheck,
91  // End concept checking
92 #endif
93 
94 protected:
96  ~NoiseImageFilter() override = default;
97 
108  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
109 
110 };
111 } // end namespace itk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkNoiseImageFilter.hxx"
115 #endif
116 
117 #endif
typename NumericTraits< InputPixelType >::RealType InputRealType
typename InputImageType::SizeType InputSizeType
Define numeric traits for std::vector.
typename TOutputImage::PixelType OutputPixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename TInputImage::PixelType InputPixelType
A base class for all the filters working on a box neighborhood.
typename InputImageType::RegionType InputImageRegionType
Calculate the local noise in an image.
#define itkConceptMacro(name, concept)