ITK  5.2.0
Insight Toolkit
itkBoxMeanImageFilter.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  * 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 itkBoxMeanImageFilter_h
19 #define itkBoxMeanImageFilter_h
20 
21 #include "itkBoxImageFilter.h"
22 
23 namespace itk
24 {
42 template <typename TInputImage, typename TOutputImage = TInputImage>
43 class ITK_TEMPLATE_EXPORT BoxMeanImageFilter : public BoxImageFilter<TInputImage, TOutputImage>
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_MOVE(BoxMeanImageFilter);
47 
53 
55  itkNewMacro(Self);
56 
58  itkTypeMacro(BoxMeanImageFilter, BoxImageFilter);
59 
61  using InputImageType = TInputImage;
62  using OutputImageType = TOutputImage;
64  using SizeType = typename TInputImage::SizeType;
66  using PixelType = typename TInputImage::PixelType;
67  using OffsetType = typename TInputImage::OffsetType;
68  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
69  using OutputPixelType = typename TOutputImage::PixelType;
70 
72  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
73  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
74 
75 #ifdef ITK_USE_CONCEPT_CHECKING
76  // Begin concept checking
78 
79  // End concept checking
80 #endif
81 
82 protected:
84  ~BoxMeanImageFilter() override = default;
85 
87  void
88  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
89 
90 }; // end of class
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 # include "itkBoxMeanImageFilter.hxx"
95 #endif
96 
97 #endif
itk::BoxImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition: itkBoxImageFilter.h:67
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::BoxImageFilter
A base class for all the filters working on a box neighborhood.
Definition: itkBoxImageFilter.h:40
itk::BoxImageFilter::OffsetType
typename TInputImage::OffsetType OffsetType
Definition: itkBoxImageFilter.h:62
itk::Concept::SameDimension
Definition: itkConceptChecking.h:692
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::BoxImageFilter::IndexType
typename TInputImage::IndexType IndexType
Definition: itkBoxImageFilter.h:61
itk::BoxMeanImageFilter
Implements a fast rectangular mean filter using the accumulator approach.
Definition: itkBoxMeanImageFilter.h:43
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:64
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itkBoxImageFilter.h
itk::BoxImageFilter::SizeType
typename TInputImage::SizeType SizeType
Definition: itkBoxImageFilter.h:60
itk::BoxMeanImageFilter::PixelType
typename TInputImage::PixelType PixelType
Definition: itkBoxMeanImageFilter.h:66
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::BoxImageFilter::RegionType
typename TInputImage::RegionType RegionType
Definition: itkBoxImageFilter.h:59