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: 2003/12/04 19:51:51 $
00007   Version:   $Revision: 1.2 $
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   
00041 template<class TPixel, unsigned int VDimension = 2,
00042          class TAllocator = NeighborhoodAllocator<TPixel> >
00043 class ITK_EXPORT BinaryCrossStructuringElement
00044   : public Neighborhood<TPixel, VDimension, TAllocator>
00045 {
00046 public:
00048   typedef BinaryCrossStructuringElement Self;
00049   typedef Neighborhood<TPixel, VDimension, TAllocator> Superclass;
00050 
00052   typedef TAllocator AllocatorType;
00053 
00055   itkStaticConstMacro(NeighborhoodDimension, unsigned int, VDimension);
00056   
00058   typedef TPixel PixelType;
00059   
00063   typedef typename AllocatorType::iterator Iterator;
00064   typedef typename AllocatorType::const_iterator ConstIterator;
00065   
00067   typedef typename Superclass::SizeType SizeType;
00068   typedef typename Superclass::SizeValueType SizeValueType;
00069 
00071   typedef typename Superclass::OffsetType OffsetType;
00072   typedef typename OffsetType::OffsetValueType OffsetValueType;
00073   
00075   typedef typename Superclass::RadiusType RadiusType;
00076 
00078   typedef SliceIterator<TPixel, Self> SliceIteratorType;
00079   
00081   BinaryCrossStructuringElement() {}
00082 
00084   virtual ~BinaryCrossStructuringElement() {}
00085     
00087   BinaryCrossStructuringElement(const Self& other)
00088     : Neighborhood<TPixel, VDimension, TAllocator>(other)
00089   {
00090   }
00091 
00093   Self &operator=(const Self& other)
00094   {
00095     Superclass::operator=(other);
00096     return *this;
00097   }
00098 
00100   void CreateStructuringElement();   
00101   
00102 protected:
00103   
00104 private:
00105 
00106 };
00107 
00108 } // namespace itk
00109 
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkBinaryCrossStructuringElement.txx"
00112 #endif
00113 
00114 #endif

Generated at Wed May 24 22:49:29 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000