ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkBoxMeanImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkBoxMeanImageFilter_h
00019 #define __itkBoxMeanImageFilter_h
00020 
00021 #include "itkBoxImageFilter.h"
00022 
00023 namespace itk
00024 {
00042 template< class TInputImage, class TOutputImage = TInputImage >
00043 class ITK_EXPORT BoxMeanImageFilter:
00044   public BoxImageFilter< TInputImage, TOutputImage >
00045 {
00046 public:
00048   typedef BoxMeanImageFilter                          Self;
00049   typedef BoxImageFilter< TInputImage, TOutputImage > Superclass;
00050   typedef SmartPointer< Self >                        Pointer;
00051   typedef SmartPointer< const Self >                  ConstPointer;
00052 
00054   itkNewMacro(Self);
00055 
00057   itkTypeMacro(BoxMeanImageFilter,
00058                BoxImageFilter);
00059 
00061   typedef TInputImage                                InputImageType;
00062   typedef TOutputImage                               OutputImageType;
00063   typedef typename TInputImage::RegionType           RegionType;
00064   typedef typename TInputImage::SizeType             SizeType;
00065   typedef typename TInputImage::IndexType            IndexType;
00066   typedef typename TInputImage::PixelType            PixelType;
00067   typedef typename TInputImage::OffsetType           OffsetType;
00068   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00069   typedef typename TOutputImage::PixelType           OutputPixelType;
00070 
00072   itkStaticConstMacro(OutputImageDimension, unsigned int,
00073                       TOutputImage::ImageDimension);
00074   itkStaticConstMacro(InputImageDimension, unsigned int,
00075                       TInputImage::ImageDimension);
00077 
00078 #ifdef ITK_USE_CONCEPT_CHECKING
00079 
00080   itkConceptMacro( SameDimension,
00081                    ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
00082                                              itkGetStaticConstMacro(OutputImageDimension) > ) );
00083 
00085 #endif
00086 protected:
00087   BoxMeanImageFilter();
00088   ~BoxMeanImageFilter() {}
00089 
00091   void  ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId);
00092 
00093 private:
00094   BoxMeanImageFilter(const Self &); //purposely not implemented
00095   void operator=(const Self &);     //purposely not implemented
00096 };                                  // end of class
00097 } // end namespace itk
00098 
00099 #ifndef ITK_MANUAL_INSTANTIATION
00100 #include "itkBoxMeanImageFilter.hxx"
00101 #endif
00102 
00103 #endif
00104