00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBloxCoreAtomImage.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/09/11 19:39:03 $ 00007 Version: $Revision: 1.26 $ 00008 00009 Copyright (c) 2002 Insight 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 "itkPoint.h" 00022 #include "itkVector.h" 00023 #include "itkCovariantVector.h" 00024 #include "itkBloxBoundaryPointItem.h" 00025 #include "itkBloxBoundaryPointPixel.h" 00026 #include "itkBloxBoundaryPointImage.h" 00027 #include "itkBloxCoreAtomItem.h" 00028 #include "itkBloxCoreAtomPixel.h" 00029 #include "itkBloxImage.h" 00030 00031 namespace itk 00032 { 00033 00042 template <unsigned int dim> 00043 class ITK_EXPORT BloxCoreAtomImage : 00044 public BloxImage<BloxCoreAtomPixel<dim>, dim> 00045 { 00046 public: 00048 typedef BloxCoreAtomImage Self; 00049 00054 itkStaticConstMacro(NDimensions, unsigned int, dim); 00055 00056 typedef BloxImage<BloxCoreAtomPixel<dim>, dim> Superclass; 00057 typedef SmartPointer<Self> Pointer; 00058 typedef SmartPointer<const Self> ConstPointer; 00059 00061 itkNewMacro(Self); 00062 00064 itkTypeMacro(BloxCoreAtomImage, BloxImage); 00065 00067 typedef BloxBoundaryPointItem<dim> BPItemType; 00068 00071 typedef BloxCoreAtomPixel<dim> PixelType; 00072 00077 typedef PixelType InternalPixelType; 00078 00081 typedef DefaultPixelAccessor< PixelType > AccessorType; 00082 00084 typedef Point<double, dim> PositionType; 00085 00087 typedef typename PositionType::VectorType VectorType; 00088 00090 typedef CovariantVector<double, dim> GradientType; 00091 00096 typedef typename Superclass::PixelContainer PixelContainer; 00097 typedef typename Superclass::SizeType SizeType; 00098 typedef typename Superclass::IndexType IndexType; 00099 typedef typename IndexType::IndexValueType IndexValueType; 00100 typedef typename Superclass::OffsetType OffsetType; 00101 typedef typename Superclass::RegionType RegionType; 00102 00104 typedef typename PixelContainer::Pointer PixelContainerPointer; 00105 00107 void DoEigenanalysis(); 00108 00110 void DoCoreAtomVoting(); 00111 00112 00113 // ImageRegionIterator<Self> ReturnIterator(); 00114 00115 00116 protected: 00117 BloxCoreAtomImage(); 00118 virtual ~BloxCoreAtomImage(); 00119 void PrintSelf(std::ostream& os, Indent indent) const; 00120 00121 private: 00122 BloxCoreAtomImage(const Self&); //purposely not implemented 00123 void operator=(const Self&); //purposely not implemented 00124 00125 }; 00126 00127 } // end namespace itk 00128 00129 #ifndef ITK_MANUAL_INSTANTIATION 00130 #include "itkBloxCoreAtomImage.txx" 00131 #endif 00132 00133 #endif