ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkLevelSet.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 __itkLevelSet_h
00019 #define __itkLevelSet_h
00020 
00021 #include "itkLevelSetNode.h"
00022 
00023 namespace itk
00024 {
00039 template< class TLevelSet >
00040 class ITK_EXPORT LevelSetTypeDefault
00041 {
00042 public:
00044   typedef LevelSetTypeDefault Self;
00045   typedef TLevelSet           LevelSetImageType;
00046 
00048   itkStaticConstMacro(SetDimension, unsigned int, TLevelSet::ImageDimension);
00049 
00051   typedef typename TLevelSet::Pointer      LevelSetPointer;
00052   typedef typename TLevelSet::ConstPointer LevelSetConstPointer;
00053 
00055   typedef typename TLevelSet::PixelType PixelType;
00056 
00058   typedef
00059   LevelSetNode< PixelType, itkGetStaticConstMacro(SetDimension) > NodeType;
00060 
00062   typedef VectorContainer< unsigned int, NodeType > NodeContainer;
00063 
00065   typedef typename NodeContainer::Pointer NodeContainerPointer;
00066 };
00067 
00084 template<
00085   class TPixel,
00086   unsigned int VAuxDimension = 1,
00087   unsigned int VSetDimension = 2
00088   >
00089 class ITK_EXPORT AuxVarTypeDefault
00090 {
00091 public:
00093   typedef AuxVarTypeDefault Self;
00094 
00096   typedef TPixel AuxValueType;
00097 
00099   itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
00100 
00102   itkStaticConstMacro(SetDimension, unsigned int, VSetDimension);
00103 
00105   typedef Vector< TPixel, VAuxDimension > AuxValueVectorType;
00106 
00108   typedef VectorContainer< unsigned int, AuxValueVectorType > AuxValueContainer;
00109 
00111   typedef Image< AuxValueType, VSetDimension > AuxImageType;
00112 
00114   typedef typename AuxImageType::Pointer      AuxImagePointer;
00115   typedef typename AuxImageType::ConstPointer AuxImageConstPointer;
00116 };
00117 } // end namespace itk
00118 
00119 #endif
00120