ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVarianceImageFilter.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 itkVarianceImageFilter_h
19#define itkVarianceImageFilter_h
20
21#include "itkBoxImageFilter.h"
22#include "itkImage.h"
23#include "itkNumericTraits.h"
24
25namespace itk
26{
37template <typename TInputImage, typename TOutputImage>
38class ITK_TEMPLATE_EXPORT VarianceImageFilter final : public BoxImageFilter<TInputImage, TOutputImage>
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(VarianceImageFilter);
42
44 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
45 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
46
48 using InputImageType = TInputImage;
49 using OutputImageType = TOutputImage;
50
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(VarianceImageFilter);
62
64 using InputPixelType = typename InputImageType::PixelType;
65 using OutputPixelType = typename OutputImageType::PixelType;
67
68 using InputImageRegionType = typename InputImageType::RegionType;
69 using OutputImageRegionType = typename OutputImageType::RegionType;
70
71 using InputSizeType = typename InputImageType::SizeType;
72
73#ifdef ITK_USE_CONCEPT_CHECKING
74 // Begin concept checking
76 // End concept checking
77#endif
78
79protected:
81 ~VarianceImageFilter() override = default;
82
93 void
94 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) override;
95};
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkVarianceImageFilter.hxx"
100#endif
101
102#endif
Implements transparent reference counting.
~VarianceImageFilter() override=default
typename InputImageType::SizeType InputSizeType
static constexpr unsigned int InputImageDimension
static constexpr unsigned int OutputImageDimension
BoxImageFilter< InputImageType, OutputImageType > Superclass
SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputImageRegionType
typename NumericTraits< InputPixelType >::RealType InputRealType
typename InputImageType::PixelType InputPixelType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::RegionType InputImageRegionType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType