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
00062
itkNewMacro(
Self);
00063
00065
itkTypeMacro(BloxCoreAtomImage,
BloxImage);
00066
00068 typedef BloxBoundaryPointItem<dim> BPItemType;
00069
00072 typedef BloxCoreAtomPixel<dim > PixelType;
00073
00078 typedef PixelType InternalPixelType;
00079
00082 typedef DefaultPixelAccessor< PixelType > AccessorType;
00083
00085 typedef Point<double, dim> PositionType;
00086
00088 typedef typename PositionType::VectorType
VectorType;
00089
00091 typedef CovariantVector<double, dim> GradientType;
00092
00094
itkGetMacro(MedialNodeCount,
int);
00095
00096 typedef std::vector<PixelType*>
NodePointerListType;
00097 typedef std::vector<PixelType*> *
NodePointerListPointer;
00098
00100
itkGetMacro(NodePointerList,
NodePointerListPointer);
00101
00106 typedef typename Superclass::PixelContainer
PixelContainer;
00107 typedef typename Superclass::SizeType
SizeType;
00108 typedef typename Superclass::IndexType
IndexType;
00109 typedef typename IndexType::IndexValueType
IndexValueType;
00110 typedef typename Superclass::OffsetType
OffsetType;
00111 typedef typename Superclass::RegionType
RegionType;
00112
00114 typedef typename PixelContainer::Pointer
PixelContainerPointer;
00115
00117
void DoEigenanalysis();
00118
00120
void DoCoreAtomVoting();
00121
00122
00123
00124
00125
00126
protected:
00127 BloxCoreAtomImage();
00128
virtual ~BloxCoreAtomImage();
00129
void PrintSelf(std::ostream& os,
Indent indent)
const;
00130
00131
private:
00132 BloxCoreAtomImage(
const Self&);
00133
void operator=(
const Self&);
00134
00136
int m_MedialNodeCount;
00137
00139
NodePointerListPointer m_NodePointerList;
00140
00141 };
00142
00143 }
00144
00145
#ifndef ITK_MANUAL_INSTANTIATION
00146
#include "itkBloxCoreAtomImage.txx"
00147
#endif
00148
00149
#endif