ITK  4.6.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 >
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;
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:
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
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.
Superclass::OutputImageRegionType OutputImageRegionType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
static const unsigned int InputImageDimension
static const unsigned int OutputImageDimension
Superclass::OutputImageRegionType OutputImageRegionType
#define itkConceptMacro(name, concept)
void operator=(const Self &)
TInputImage::OffsetType OffsetType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159