Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkBinaryCrossStructuringElement.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBinaryCrossStructuringElement.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/02/08 18:56:16 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkBinaryCrossStructuringElement_h
00018 #define __itkBinaryCrossStructuringElement_h
00019 
00020 #include "itkNeighborhood.h"
00021 
00022 namespace itk {
00023   
00042 template<class TPixel, unsigned int VDimension = 2,
00043          class TAllocator = NeighborhoodAllocator<TPixel> >
00044 class ITK_EXPORT BinaryCrossStructuringElement
00045   : public Neighborhood<TPixel, VDimension, TAllocator>
00046 {
00047 public:
00049   typedef BinaryCrossStructuringElement                Self;
00050   typedef Neighborhood<TPixel, VDimension, TAllocator> Superclass;
00051 
00053   typedef TAllocator AllocatorType;
00054 
00056   itkStaticConstMacro(NeighborhoodDimension, unsigned int, VDimension);
00057 
00059   typedef TPixel PixelType;
00060 
00064   typedef typename AllocatorType::iterator       Iterator;
00065   typedef typename AllocatorType::const_iterator ConstIterator;
00066 
00068   typedef typename Superclass::SizeType      SizeType;
00069   typedef typename Superclass::SizeValueType SizeValueType;
00070 
00072   typedef typename Superclass::OffsetType      OffsetType;
00073   typedef typename OffsetType::OffsetValueType OffsetValueType;
00074 
00076   typedef typename Superclass::RadiusType RadiusType;
00077 
00079   typedef SliceIterator<TPixel, Self> SliceIteratorType;
00080 
00082   BinaryCrossStructuringElement() {}
00083 
00085   virtual ~BinaryCrossStructuringElement() {}
00086 
00088   BinaryCrossStructuringElement(const Self& other)
00089     : Neighborhood<TPixel, VDimension, TAllocator>(other)
00090     {
00091     }
00092 
00094   Self &operator=(const Self& other)
00095     {
00096     Superclass::operator=(other);
00097     return *this;
00098     }
00100 
00102   void CreateStructuringElement();   
00103 
00104 protected:
00105   
00106 private:
00107 
00108 };
00109 
00110 } // namespace itk
00111 
00112 // Define instantiation macro for this template.
00113 #define ITK_TEMPLATE_BinaryCrossStructuringElement(_, EXPORT, x, y) namespace itk { \
00114   _(2(class EXPORT BinaryCrossStructuringElement< ITK_TEMPLATE_2 x >)) \
00115   namespace Templates { typedef BinaryCrossStructuringElement< ITK_TEMPLATE_2 x > \
00116                                                   BinaryCrossStructuringElement##y; } \
00117   }
00118 
00119 #if ITK_TEMPLATE_EXPLICIT
00120 # include "Templates/itkBinaryCrossStructuringElement+-.h"
00121 #endif
00122 
00123 #if ITK_TEMPLATE_TXX
00124 # include "itkBinaryCrossStructuringElement.txx"
00125 #endif
00126 
00127 #endif
00128 

Generated at Tue Jul 29 19:09:29 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000