ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
25namespace itk
26{
50template <typename TInputImage, typename TOutputImage>
51class ITK_TEMPLATE_EXPORT NoiseImageFilter : public BoxImageFilter<TInputImage, TOutputImage>
52{
53public:
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
81 using InputImageRegionType = typename InputImageType::RegionType;
82 using OutputImageRegionType = typename OutputImageType::RegionType;
83
84 using InputSizeType = typename InputImageType::SizeType;
85
87
88protected:
90 ~NoiseImageFilter() override = default;
91
102 void
103 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
104};
105} // end namespace itk
107
108#ifndef ITK_MANUAL_INSTANTIATION
109# include "itkNoiseImageFilter.hxx"
110#endif
111
112#endif
typename NumericTraits< InputPixelType >::RealType InputRealType
~NoiseImageFilter() override=default
BoxImageFilter< InputImageType, OutputImageType > Superclass
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::SizeType InputSizeType
typename InputImageType::PixelType InputPixelType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputImageRegionType
static constexpr unsigned int OutputImageDimension
static constexpr unsigned int InputImageDimension
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....