ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkReconstructionByDilationImageFilter.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 __itkReconstructionByDilationImageFilter_h
00019 #define __itkReconstructionByDilationImageFilter_h
00020 
00021 #include "itkReconstructionImageFilter.h"
00022 
00023 #include "itkNumericTraits.h"
00024 
00025 namespace itk
00026 {
00061 template< class TInputImage, class TOutputImage >
00062 class ITK_EXPORT ReconstructionByDilationImageFilter:
00063   public ReconstructionImageFilter< TInputImage, TOutputImage, std::greater< typename TOutputImage::PixelType > >
00064 {
00065 public:
00066   typedef ReconstructionByDilationImageFilter Self;
00067   typedef ReconstructionImageFilter<
00068     TInputImage, TOutputImage, std::greater< typename TOutputImage::PixelType > >
00069   Superclass;
00070 
00071   typedef SmartPointer< Self >       Pointer;
00072   typedef SmartPointer< const Self > ConstPointer;
00073 
00075   typedef TInputImage                            MarkerImageType;
00076   typedef typename MarkerImageType::Pointer      MarkerImagePointer;
00077   typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer;
00078   typedef typename MarkerImageType::RegionType   MarkerImageRegionType;
00079   typedef typename MarkerImageType::PixelType    MarkerImagePixelType;
00080   typedef TInputImage                            MaskImageType;
00081   typedef typename MaskImageType::Pointer        MaskImagePointer;
00082   typedef typename MaskImageType::ConstPointer   MaskImageConstPointer;
00083   typedef typename MaskImageType::RegionType     MaskImageRegionType;
00084   typedef typename MaskImageType::PixelType      MaskImagePixelType;
00085   typedef TOutputImage                           OutputImageType;
00086   typedef typename OutputImageType::Pointer      OutputImagePointer;
00087   typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00088   typedef typename OutputImageType::RegionType   OutputImageRegionType;
00089   typedef typename OutputImageType::PixelType    OutputImagePixelType;
00090 
00092   itkStaticConstMacro(MarkerImageDimension, unsigned int,
00093                       TInputImage::ImageDimension);
00094   itkStaticConstMacro(MaskImageDimension, unsigned int,
00095                       TInputImage::ImageDimension);
00096   itkStaticConstMacro(OutputImageDimension, unsigned int,
00097                       TOutputImage::ImageDimension);
00099 
00101   itkNewMacro(Self);
00102 
00104   itkTypeMacro(ReconstructionByDilationImageFilter,
00105                ReconstructionImageFilter);
00106 protected:
00107   ReconstructionByDilationImageFilter()
00108   {
00109     this->m_MarkerValue = NumericTraits< typename TOutputImage::PixelType >::NonpositiveMin();
00110   }
00112 
00113   virtual ~ReconstructionByDilationImageFilter() {}
00114 private:
00115   //purposely not implemented
00116   ReconstructionByDilationImageFilter(const Self &);
00117   void operator=(const Self &);
00118 };
00119 // end ReconstructionByDilationImageFilter
00120 }
00121 
00122 #endif
00123