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

itkUnconstrainedRegionBasedLevelSetFunctionSharedData.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkUnconstrainedRegionBasedLevelSetFunctionSharedData.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-21 22:03:29 $
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 __itkUnconstrainedRegionBasedLevelSetFunctionSharedData_h
00018 #define __itkUnconstrainedRegionBasedLevelSetFunctionSharedData_h
00019 
00020 #include "itkRegionBasedLevelSetFunctionSharedData.h"
00021 
00022 namespace itk
00023 {
00024 
00059 template < class TInputImage, class TFeatureImage, class TSingleData >
00060 class UnconstrainedRegionBasedLevelSetFunctionSharedData :
00061   public RegionBasedLevelSetFunctionSharedData< TInputImage, TFeatureImage, TSingleData >
00062 {
00063 public:
00064 
00065   typedef UnconstrainedRegionBasedLevelSetFunctionSharedData       Self;
00066   typedef RegionBasedLevelSetFunctionSharedData< TInputImage, TFeatureImage, TSingleData >
00067     Superclass;
00068   typedef SmartPointer<Self>                                Pointer;
00069   typedef SmartPointer<const Self>                          ConstPointer;
00070 
00071   itkStaticConstMacro( ImageDimension, unsigned int, TFeatureImage::ImageDimension );
00072 
00074   itkNewMacro( Self );
00075 
00076   itkTypeMacro(UnconstrainedRegionBasedLevelSetFunctionSharedData, RegionBasedLevelSetFunctionSharedData);
00077 
00078   typedef TInputImage                                   InputImageType;
00079   typedef typename Superclass::InputImagePointer        InputImagePointer;
00080   typedef typename Superclass::InputImageConstPointer   InputImageConstPointer;
00081   typedef typename Superclass::InputPixelType           InputPixelType;
00082   typedef typename Superclass::InputRegionType          InputRegionType;
00083   typedef typename Superclass::InputSizeType            InputSizeType;
00084   typedef typename Superclass::InputSizeValueType       InputSizeValueType;
00085   typedef typename Superclass::InputSpacingType         InputSpacingType;
00086   typedef typename Superclass::InputIndexType           InputIndexType;
00087   typedef typename Superclass::InputIndexValueType      InputIndexValueType;
00088   typedef typename Superclass::InputPointType           InputPointType;
00089 
00090   typedef TFeatureImage                                 FeatureImageType;
00091   typedef typename Superclass::FeatureImagePointer      FeatureImagePointer;
00092   typedef typename Superclass::FeatureImageConstPointer FeatureImageConstPointer;
00093   typedef typename Superclass::FeaturePixelType         FeaturePixelType;
00094   typedef typename Superclass::FeatureRegionType        FeatureRegionType;
00095   typedef typename Superclass::FeatureSizeType          FeatureSizeType;
00096   typedef typename Superclass::FeatureSizeValueType     FeatureSizeValueType;
00097   typedef typename Superclass::FeatureSpacingType       FeatureSpacingType;
00098   typedef typename Superclass::FeatureIndexType         FeatureIndexType;
00099   typedef typename Superclass::FeaturePointType         FeaturePointType;
00100 
00101   typedef typename Superclass::ListPixelType            ListPixelType;
00102   typedef typename Superclass::ListImageType            ListImageType;
00103   typedef typename Superclass::ListImagePointer         ListImagePointer;
00104   typedef typename Superclass::ListImageConstPointer    ListImageConstPointer;
00105   typedef typename Superclass::ListRegionType           ListRegionType;
00106   typedef typename Superclass::ListSizeType             ListSizeType;
00107   typedef typename Superclass::ListSizeValueType        ListSizeValueType;
00108   typedef typename Superclass::ListSpacingType          ListSpacingType;
00109   typedef typename Superclass::ListIndexType            ListIndexType;
00110   typedef typename Superclass::ListIndexValueType       ListIndexValueType;
00111   typedef typename Superclass::ListPointType            ListPointType;
00112   typedef typename Superclass::ListIteratorType         ListIteratorType;
00113 
00114   typedef typename Superclass::CentroidVectorType       CentroidVectorType;
00115   typedef typename Superclass::SampleType               SampleType;
00116   typedef typename Superclass::TreeGeneratorType        TreeGeneratorType;
00117   typedef typename Superclass::TreePointer              TreePointer;
00118   typedef typename Superclass::TreeType                 TreeType;
00119   typedef typename Superclass::KdTreePointer            KdTreePointer;
00120 
00121   typedef TSingleData                                             LevelSetDataType;
00122   typedef typename Superclass::LevelSetDataPointer                LevelSetDataPointer;
00123   typedef typename Superclass::LevelSetDataPointerVector          LevelSetDataPointerVector;
00124   typedef typename Superclass::LevelSetDataPointerVectorIterator  LevelSetDataPointerVectorIterator;
00125 
00126   void PopulateListImage()
00127     {
00128     ListPixelType L;
00129     for( unsigned int i = 0; i < this->m_FunctionCount; i++ )
00130       {
00131       L.push_back( i );
00132       }
00133     this->m_NearestNeighborListImage->FillBuffer( L );
00134     }
00135 
00136 protected:
00137   UnconstrainedRegionBasedLevelSetFunctionSharedData() : Superclass( ){}
00138   ~UnconstrainedRegionBasedLevelSetFunctionSharedData(){}
00139 
00140 private:
00141   UnconstrainedRegionBasedLevelSetFunctionSharedData(const Self&); //purposely not implemented
00142   void operator=(const Self&); //purposely not implemented
00143 };
00144 
00145 } //end namespace itk
00146 
00147 #endif
00148 

Generated at Mon Jul 12 2010 20:05:55 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000