|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNeighborhoodIterator_h
19 #define itkNeighborhoodIterator_h
211 template <
typename TImage,
typename TBoundaryCondition = ZeroFluxNeumannBoundaryCondition<TImage>>
220 using typename Superclass::InternalPixelType;
223 using typename Superclass::ImageType;
228 using typename Superclass::NeighborhoodType;
231 using typename Superclass::ImageBoundaryConditionPointerType;
247 Superclass::operator=(orig);
262 return (this->
operator[]((this->
Size()) >> 1));
269 this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]((this->
Size()) >> 1), p);
276 SetNeighborhood(
const NeighborhoodType &);
281 SetPixel(
const unsigned int i,
const PixelType & v,
bool & status);
285 SetPixel(
const unsigned int i,
const PixelType & v);
293 this->SetPixel(this->GetNeighborhoodIndex(o), v);
304 this->SetPixel(this->GetCenterNeighborhoodIndex() + (i * this->GetStride(axis)), v);
313 this->SetPixel(this->GetCenterNeighborhoodIndex() + this->GetStride(axis), v);
322 this->SetPixel(this->GetCenterNeighborhoodIndex() - (i * this->GetStride(axis)), v);
331 this->SetPixel(this->GetCenterNeighborhoodIndex() - this->GetStride(axis), v);
337 #ifndef ITK_MANUAL_INSTANTIATION
338 # include "itkNeighborhoodIterator.hxx"
void SetCenterPixel(const PixelType &p)
Represent a n-dimensional size (bounds) of a n-dimensional image.
typename ImageType ::PixelType PixelType
NeighborhoodIterator(const SizeType &radius, ImageType *ptr, const RegionType ®ion)
void SetNext(const unsigned int axis, const PixelType &v)
A light-weight container object for storing an N-dimensional neighborhood of values.
ImageBaseType::SizeType SizeType
Self & operator=(const Self &orig)
ImageBaseType::IndexType IndexType
NeighborhoodIterator(const NeighborhoodIterator &n)
ImageBaseType::RegionType RegionType
typename AllocatorType::iterator Iterator
void SetPrevious(const unsigned int axis, const unsigned int i, const PixelType &v)
typename AllocatorType::const_iterator ConstIterator
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
void SetNext(const unsigned int axis, const unsigned int i, const PixelType &v)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename ImageType ::RegionType RegionType
void SetPixel(const OffsetType o, const PixelType &v)
void SetPrevious(const unsigned int axis, const PixelType &v)
InternalPixelType * GetCenterPointer()