ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkBoxMeanImageFilter.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 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:
44  public BoxImageFilter< TInputImage, TOutputImage >
45 {
46 public:
52 
54  itkNewMacro(Self);
55 
57  itkTypeMacro(BoxMeanImageFilter,
59 
61  typedef TInputImage InputImageType;
62  typedef TOutputImage OutputImageType;
63  typedef typename TInputImage::RegionType RegionType;
64  typedef typename TInputImage::SizeType SizeType;
66  typedef typename TInputImage::PixelType PixelType;
67  typedef typename TInputImage::OffsetType OffsetType;
68  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
69  typedef typename TOutputImage::PixelType OutputPixelType;
70 
72  itkStaticConstMacro(OutputImageDimension, unsigned int,
73  TOutputImage::ImageDimension);
74  itkStaticConstMacro(InputImageDimension, unsigned int,
75  TInputImage::ImageDimension);
77 
78 #ifdef ITK_USE_CONCEPT_CHECKING
79  // Begin concept checking
80  itkConceptMacro( SameDimension,
81  ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
82  itkGetStaticConstMacro(OutputImageDimension) > ) );
83 
84  // End concept checking
85 #endif
86 
87 protected:
89  ~BoxMeanImageFilter() ITK_OVERRIDE {}
90 
92  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE;
93 
94 private:
95  ITK_DISALLOW_COPY_AND_ASSIGN(BoxMeanImageFilter);
96 }; // end of class
97 } // end namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkBoxMeanImageFilter.hxx"
101 #endif
102 
103 #endif
TInputImage::SizeType SizeType
TOutputImage::PixelType OutputPixelType
BoxImageFilter< TInputImage, TOutputImage > Superclass
SmartPointer< const Self > ConstPointer
Base class for all process objects that output image data.
TInputImage::IndexType IndexType
SmartPointer< Self > Pointer
TInputImage::RegionType RegionType
TInputImage::PixelType PixelType
Implements a fast rectangular mean filter using the accumulator approach.
A base class for all the filters working on a box neighborhood.
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Superclass::OutputImageRegionType OutputImageRegionType
#define itkConceptMacro(name, concept)
TInputImage::OffsetType OffsetType