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

itkBloxCoreAtomImage.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBloxCoreAtomImage.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/30 20:56:07 $
00007   Version:   $Revision: 1.33 $
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 __itkBloxCoreAtomImage_h
00018 #define __itkBloxCoreAtomImage_h
00019 
00020 #include "vnl/vnl_vector_fixed.h"
00021 #include "vnl/vnl_vector.h"
00022 #include "itkPoint.h"
00023 #include "itkVector.h"
00024 #include "itkCovariantVector.h"
00025 #include "itkBloxBoundaryPointItem.h"
00026 #include "itkBloxBoundaryPointPixel.h"
00027 #include "itkBloxBoundaryPointImage.h"
00028 #include "itkBloxCoreAtomItem.h"
00029 #include "itkBloxCoreAtomPixel.h"
00030 #include "itkBloxImage.h"
00031 
00032 namespace itk
00033 {
00034 
00043 template <unsigned int NDimension>
00044 class ITK_EXPORT BloxCoreAtomImage :
00045   public BloxImage<BloxCoreAtomPixel<NDimension>, NDimension>
00046 {
00047 public:
00049   typedef BloxCoreAtomImage  Self;
00050 
00055   itkStaticConstMacro(NDimensions, unsigned int, NDimension);
00056 
00057   typedef BloxImage<BloxCoreAtomPixel<NDimension>, NDimension>  Superclass;
00058 
00059   typedef SmartPointer<Self>         Pointer;
00060   typedef SmartPointer<const Self>   ConstPointer;
00061   typedef WeakPointer<const Self>    ConstWeakPointer;
00062   
00064   itkNewMacro(Self);
00065 
00067   itkTypeMacro(BloxCoreAtomImage, BloxImage);
00068 
00070   typedef BloxBoundaryPointItem<NDimension> BPItemType;
00071 
00074   typedef BloxCoreAtomPixel<NDimension > PixelType;
00075 
00080   typedef PixelType InternalPixelType;
00081 
00084   typedef DefaultPixelAccessor< PixelType > AccessorType;
00085 
00087   typedef Point<double, NDimension> PositionType;
00088 
00090   typedef typename PositionType::VectorType VectorType;
00091 
00093   typedef CovariantVector<double, NDimension> GradientType;
00094 
00096   itkGetMacro(MedialNodeCount, int);
00097 
00098   typedef std::vector<PixelType*>   NodePointerListType;
00099   typedef std::vector<PixelType*> * NodePointerListPointer;
00100 
00102   itkGetMacro(NodePointerList, NodePointerListPointer);
00103 
00108   typedef typename Superclass::PixelContainer PixelContainer;
00109   typedef typename Superclass::SizeType       SizeType;
00110   typedef typename Superclass::IndexType      IndexType;
00111   typedef typename IndexType::IndexValueType  IndexValueType;
00112   typedef typename Superclass::OffsetType     OffsetType;
00113   typedef typename Superclass::RegionType     RegionType;
00114 
00116   typedef typename PixelContainer::Pointer PixelContainerPointer;
00117 
00119   void DoEigenanalysis();
00120 
00122   void DoCoreAtomVoting();
00123 
00124 protected:
00125   BloxCoreAtomImage();
00126   virtual ~BloxCoreAtomImage();
00127   void PrintSelf(std::ostream& os, Indent indent) const;
00128 
00129 private:
00130   BloxCoreAtomImage(const Self&); //purposely not implemented
00131   void operator=(const Self&); //purposely not implemented
00132 
00134   int m_MedialNodeCount;
00135 
00137   NodePointerListPointer m_NodePointerList;
00138 
00139 };
00140 
00141 } // end namespace itk
00142 
00143 // Define instantiation macro for this template.
00144 #define ITK_TEMPLATE_BloxCoreAtomImage(_, EXPORT, x, y) namespace itk { \
00145   _(1(class EXPORT BloxCoreAtomImage< ITK_TEMPLATE_1 x >)) \
00146   namespace Templates { typedef BloxCoreAtomImage< ITK_TEMPLATE_1 x > \
00147                                             BloxCoreAtomImage##y; } \
00148   }
00149 
00150 #if ITK_TEMPLATE_EXPLICIT
00151 # include "Templates/itkBloxCoreAtomImage+-.h"
00152 #endif
00153 
00154 #if ITK_TEMPLATE_TXX
00155 # include "itkBloxCoreAtomImage.txx"
00156 #endif
00157 
00158 #endif
00159 

Generated at Tue Jul 29 19:20:54 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000