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

itkLevelSet.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLevelSet.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-05 19:05:00 $
00007   Version:   $Revision: 1.8 $
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 __itkLevelSet_h
00018 #define __itkLevelSet_h
00019 
00020 #include "itkIndex.h"
00021 #include "itkImage.h"
00022 #include "itkVectorContainer.h"
00023 #include "itkVector.h"
00024 #include "itkLevelSetNode.h"
00025 
00026 namespace itk
00027 {
00041 template<class TLevelSet>
00042 class ITK_EXPORT LevelSetTypeDefault
00043 {
00044 public:
00046   typedef LevelSetTypeDefault Self;
00047   typedef TLevelSet           LevelSetImageType;
00048 
00049   
00051   itkStaticConstMacro(SetDimension, unsigned int, TLevelSet::ImageDimension);
00052 
00054   typedef typename TLevelSet::Pointer      LevelSetPointer;
00055   typedef typename TLevelSet::ConstPointer LevelSetConstPointer;
00056 
00058   typedef typename TLevelSet::PixelType PixelType;
00059 
00061   typedef
00062       LevelSetNode<PixelType, itkGetStaticConstMacro(SetDimension)> NodeType;
00063 
00065   typedef VectorContainer<unsigned int,NodeType> NodeContainer;
00066 
00068   typedef typename NodeContainer::Pointer NodeContainerPointer;
00069 };
00070 
00071 
00087 template < 
00088 class TPixel,
00089 unsigned int VAuxDimension = 1,
00090 unsigned int VSetDimension = 2
00091 >
00092 class ITK_EXPORT AuxVarTypeDefault
00093 {
00094 public:
00096   typedef AuxVarTypeDefault Self;
00097 
00099   typedef TPixel AuxValueType;
00100 
00102   itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
00103 
00105   itkStaticConstMacro(SetDimension, unsigned int, VSetDimension);
00106 
00108   typedef Vector<TPixel,VAuxDimension> AuxValueVectorType;
00109 
00111   typedef VectorContainer<unsigned int,AuxValueVectorType> AuxValueContainer;
00112 
00114   typedef Image<AuxValueType, VSetDimension> AuxImageType;
00115 
00117   typedef typename AuxImageType::Pointer      AuxImagePointer;
00118   typedef typename AuxImageType::ConstPointer AuxImageConstPointer;
00119 };
00120 
00121 
00122 } // end namespace itk
00123 
00124 #endif
00125 

Generated at Thu May 28 10:40:07 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000