00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 dim>
00044 class ITK_EXPORT BloxCoreAtomImage :
00045 public BloxImage<BloxCoreAtomPixel<dim>, dim>
00046 {
00047 public:
00049 typedef BloxCoreAtomImage Self;
00050
00055 itkStaticConstMacro(NDimensions, unsigned int, dim);
00056
00057 typedef BloxImage<BloxCoreAtomPixel<dim>, dim> Superclass;
00058 typedef SmartPointer<Self> Pointer;
00059 typedef SmartPointer<const Self> ConstPointer;
00060 typedef WeakPointer<const Self> ConstWeakPointer;
00061
00063 itkNewMacro(Self);
00064
00066 itkTypeMacro(BloxCoreAtomImage, BloxImage);
00067
00069 typedef BloxBoundaryPointItem<dim> BPItemType;
00070
00073 typedef BloxCoreAtomPixel<dim > PixelType;
00074
00079 typedef PixelType InternalPixelType;
00080
00083 typedef DefaultPixelAccessor< PixelType > AccessorType;
00084
00086 typedef Point<double, dim> PositionType;
00087
00089 typedef typename PositionType::VectorType VectorType;
00090
00092 typedef CovariantVector<double, dim> GradientType;
00093
00095 itkGetMacro(MedialNodeCount, int);
00096
00097 typedef std::vector<PixelType*> NodePointerListType;
00098 typedef std::vector<PixelType*> * NodePointerListPointer;
00099
00101 itkGetMacro(NodePointerList, NodePointerListPointer);
00102
00107 typedef typename Superclass::PixelContainer PixelContainer;
00108 typedef typename Superclass::SizeType SizeType;
00109 typedef typename Superclass::IndexType IndexType;
00110 typedef typename IndexType::IndexValueType IndexValueType;
00111 typedef typename Superclass::OffsetType OffsetType;
00112 typedef typename Superclass::RegionType RegionType;
00113
00115 typedef typename PixelContainer::Pointer PixelContainerPointer;
00116
00118 void DoEigenanalysis();
00119
00121 void DoCoreAtomVoting();
00122
00123
00124
00125
00126
00127 protected:
00128 BloxCoreAtomImage();
00129 virtual ~BloxCoreAtomImage();
00130 void PrintSelf(std::ostream& os, Indent indent) const;
00131
00132 private:
00133 BloxCoreAtomImage(const Self&);
00134 void operator=(const Self&);
00135
00137 int m_MedialNodeCount;
00138
00140 NodePointerListPointer m_NodePointerList;
00141
00142 };
00143
00144 }
00145
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkBloxCoreAtomImage.txx"
00148 #endif
00149
00150 #endif