ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkDilateObjectMorphologyImageFilter.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 __itkDilateObjectMorphologyImageFilter_h
00019 #define __itkDilateObjectMorphologyImageFilter_h
00020 
00021 #include "itkObjectMorphologyImageFilter.h"
00022 
00023 namespace itk
00024 {
00045 template< class TInputImage, class TOutputImage, class TKernel >
00046 class ITK_EXPORT DilateObjectMorphologyImageFilter:
00047   public ObjectMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
00048 {
00049 public:
00051   typedef DilateObjectMorphologyImageFilter                                 Self;
00052   typedef ObjectMorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass;
00053 
00054   typedef SmartPointer< Self >       Pointer;
00055   typedef SmartPointer< const Self > ConstPointer;
00056 
00058   itkNewMacro(Self);
00059 
00061   itkTypeMacro(DilateObjectMorphologyImageFilter, ObjectMorphologyImageFilter);
00062 
00064   typedef typename Superclass::PixelType PixelType;
00065 
00067   typedef TKernel KernelType;
00068 
00070   typedef typename KernelType::ConstIterator KernelIteratorType;
00071 
00073   typedef NeighborhoodIterator< TOutputImage > OutputNeighborhoodIteratorType;
00074 
00075   typedef typename Superclass::DefaultBoundaryConditionType
00076   DefaultBoundaryConditionType;
00077 
00079   typedef typename TKernel::PixelType KernelPixelType;
00080 
00081 #ifdef ITK_USE_CONCEPT_CHECKING
00082 
00083   itkConceptMacro( KernelGreaterThanComparableCheck,
00084                    ( Concept::GreaterThanComparable< KernelPixelType > ) );
00085 
00087 #endif
00088 protected:
00089   DilateObjectMorphologyImageFilter();
00090   ~DilateObjectMorphologyImageFilter() {}
00091   void PrintSelf(std::ostream & os, Indent indent) const;
00093 
00098   void Evaluate(OutputNeighborhoodIteratorType & nit,
00099                 const KernelType & kernel);
00100 
00101 private:
00102   DilateObjectMorphologyImageFilter(const Self &); //purposely not implemented
00103   void operator=(const Self &);                    //purposely not implemented
00104 
00105   // Default boundary condition for dilation filter, defaults to
00106   // NumericTraits<PixelType>::NonpositiveMin()
00107   DefaultBoundaryConditionType m_DilateBoundaryCondition;
00108 }; // end of class
00109 } // end namespace itk
00110 
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkDilateObjectMorphologyImageFilter.hxx"
00113 #endif
00114 
00115 #endif
00116