18 #ifndef __itkNeighborhoodIterator_h
19 #define __itkNeighborhoodIterator_h
215 template<
class TImage,
class TBoundaryCondition =
216 ZeroFluxNeumannBoundaryCondition< TImage > >
238 typedef typename Superclass::ImageBoundaryConditionPointerType
250 Superclass::operator=(orig);
262 virtual void PrintSelf(std::ostream &,
Indent)
const;
266 {
return ( this->
operator[]( ( this->
Size() ) >> 1 ) ); }
270 { this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]( ( this->
Size() ) >> 1 ), p); }
275 virtual void SetNeighborhood(
const NeighborhoodType &);
279 virtual void SetPixel(
const unsigned i,
const PixelType & v,
283 virtual void SetPixel(
const unsigned i,
const PixelType & v);
289 { this->
SetPixel(this->GetNeighborhoodIndex(o), v); }
296 virtual void SetNext(
const unsigned axis,
const unsigned i,
299 this->SetPixel(this->GetCenterNeighborhoodIndex()
300 + ( i * this->GetStride(axis) ), v);
306 virtual void SetNext(
const unsigned axis,
const PixelType & v)
308 this->SetPixel(this->GetCenterNeighborhoodIndex()
309 + this->GetStride(axis), v);
315 virtual void SetPrevious(
const unsigned axis,
const unsigned i,
318 this->SetPixel(this->GetCenterNeighborhoodIndex()
319 - ( i * this->GetStride(axis) ), v);
325 virtual void SetPrevious(
const unsigned axis,
328 this->SetPixel(this->GetCenterNeighborhoodIndex()
329 - this->GetStride(axis), v);
335 #ifndef ITK_MANUAL_INSTANTIATION
336 #include "itkNeighborhoodIterator.hxx"