ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkMovingHistogramDilateImageFilter.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 __itkMovingHistogramDilateImageFilter_h
00019 #define __itkMovingHistogramDilateImageFilter_h
00020 
00021 #include "itkMovingHistogramMorphologyImageFilter.h"
00022 
00023 namespace itk
00024 {
00041 template< class TInputImage, class TOutputImage, class TKernel >
00042 class ITK_EXPORT MovingHistogramDilateImageFilter:
00043   public MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel,
00044                                                typename Function::MorphologyHistogram< typename TInputImage::PixelType,
00045                                                                                        typename std::greater< typename
00046                                                                                                               TInputImage
00047                                                                                                               ::PixelType > > >
00048 {
00049 public:
00051   typedef MovingHistogramDilateImageFilter Self;
00052   typedef MovingHistogramMorphologyImageFilter< TInputImage, TOutputImage, TKernel,
00053                                                 typename Function::MorphologyHistogram< typename TInputImage::PixelType,
00054                                                                                         typename std::greater< typename
00055                                                                                                                TInputImage
00056                                                                                                                ::PixelType > > >  Superclass;
00057   typedef SmartPointer< Self >       Pointer;
00058   typedef SmartPointer< const Self > ConstPointer;
00059 
00061   itkNewMacro(Self);
00062 
00064   itkTypeMacro(MovingHistogramDilateImageFilter,
00065                MovingHistogramMorphologyImageFilter);
00066 
00068   typedef TInputImage                                InputImageType;
00069   typedef TOutputImage                               OutputImageType;
00070   typedef typename TInputImage::RegionType           RegionType;
00071   typedef typename TInputImage::SizeType             SizeType;
00072   typedef typename TInputImage::IndexType            IndexType;
00073   typedef typename TInputImage::PixelType            PixelType;
00074   typedef typename TInputImage::OffsetType           OffsetType;
00075   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00076   typedef typename TOutputImage::PixelType           OutputPixelType;
00077 
00079   itkStaticConstMacro(ImageDimension, unsigned int,
00080                       TInputImage::ImageDimension);
00081 protected:
00082   MovingHistogramDilateImageFilter()
00083   {
00084     this->m_Boundary = NumericTraits< PixelType >::NonpositiveMin();
00085   }
00087 
00088   ~MovingHistogramDilateImageFilter() {}
00089 private:
00090   MovingHistogramDilateImageFilter(const Self &); //purposely not implemented
00091   void operator=(const Self &);                   //purposely not implemented
00092 };                                                // end of class
00093 } // end namespace itk
00094 
00095 #endif
00096