Go to the documentation of this file.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 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 itkGetConstMacro(MedialNodeCount, int);
00097
00098 typedef std::vector<PixelType*> NodePointerListType;
00099 typedef std::vector<PixelType*> * NodePointerListPointer;
00100
00102 itkGetConstMacro(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&);
00131 void operator=(const Self&);
00132
00134 int m_MedialNodeCount;
00135
00137 NodePointerListPointer m_NodePointerList;
00138
00139 };
00140
00141 }
00142
00143
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