ITK  4.3.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< class TInputImage, class TOutputImage = TInputImage >
43 class ITK_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;
65  typedef typename TInputImage::IndexType IndexType;
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 
80  itkConceptMacro( SameDimension,
81  ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
82  itkGetStaticConstMacro(OutputImageDimension) > ) );
83 
85 #endif
86 
87 protected:
90 
92  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId);
93 
94 private:
95  BoxMeanImageFilter(const Self &); //purposely not implemented
96  void operator=(const Self &); //purposely not implemented
97 }; // end of class
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkBoxMeanImageFilter.hxx"
102 #endif
103 
104 #endif
105