00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 }
00123
00124 #endif
00125