00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkSmartNeighborhoodIterator_h
00018 #define __itkSmartNeighborhoodIterator_h
00019 #include "itkMacro.h"
00020 #include "itkNeighborhoodIterator.h"
00021
00022 namespace itk {
00023
00096 template<class TImage, class TBoundaryCondition
00097 = ZeroFluxNeumannBoundaryCondition<TImage> >
00098 class ITK_EXPORT SmartNeighborhoodIterator
00099 : public NeighborhoodIterator<TImage>
00100 {
00101 public:
00103 typedef SmartNeighborhoodIterator Self;
00104 typedef NeighborhoodIterator<TImage> Superclass;
00105
00107 typedef typename Superclass::InternalPixelType InternalPixelType;
00108 typedef typename Superclass::PixelType PixelType;
00109 typedef typename Superclass::ImageType ImageType;
00110 typedef typename Superclass::RegionType RegionType;
00111 typedef typename Superclass::SizeType SizeType;
00112 typedef typename Superclass::NeighborhoodType NeighborhoodType;
00113 typedef typename Superclass::IndexType IndexType;
00114 typedef typename Superclass::OffsetType OffsetType;
00115 typedef typename Superclass::ImageBoundaryConditionPointerType
00116 ImageBoundaryConditionPointerType;
00117 typedef typename Superclass::BoundaryConditionType BoundaryConditionType;
00118 typedef typename Superclass::OffsetValueType OffsetValueType;
00119 typedef typename Superclass::Iterator Iterator;
00120
00122 itkStaticConstMacro(Dimension, unsigned int,
00123 Superclass::Dimension);
00124
00126 SmartNeighborhoodIterator()
00127 : Superclass() {
00128 itkGenericOutputMacro(<< "SmartNeighborhoodIterator has been deprecated and will be removed. Use NeighborhoodIterator instead.");}
00129
00131 SmartNeighborhoodIterator(const Self& orig)
00132 : Superclass(orig) {itkGenericOutputMacro(<< "SmartNeighborhoodIterator has been deprecated and will be removed. Use NeighborhoodIterator instead."); }
00133
00135 Self &operator=(const Self& orig)
00136 {
00137 Superclass::operator=(orig);
00138 return *this;
00139 }
00140
00144 SmartNeighborhoodIterator(const SizeType& radius, ImageType *ptr,
00145 const RegionType& region)
00146 : Superclass(radius, ptr, region) { itkGenericOutputMacro(<< "SmartNeighborhoodIterator has been deprecated and will be removed. Use NeighborhoodIterator instead."); }
00147
00150
00151
00153
00154
00155
00157
00158
00159
00162
00163
00166
00167
00170
00171
00172 };
00173
00174 }
00175
00176 #ifndef ITK_MANUAL_INSTANTIATION
00177 #include "itkSmartNeighborhoodIterator.txx"
00178 #endif
00179
00180 #endif
00181