Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ImageNeighbors< ImageType, Inst > Class Template Reference

This class helps fast iterating through all neighbors of each point of an image. More...

#include <MorphologicalOperators.hpp>

Collaboration diagram for ImageNeighbors< ImageType, Inst >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool IsSafe (const Vect3Di &pos)
void MoveTo (const Vect3Di &pos)
void MoveBackwardsTo (const Vect3Di &pos)
Im3DValue & operator[] (int i)
 ImageNeighbors (ImageType &_image, const StructureElement &_sel)

Private Types

typedef ImageType::value_type Im3DValue
typedef ImageType::iteratorFast Iterator

Private Attributes

ImageType & image
const StructureElementsel
Im3DValue ** iterators
ImageType::iteratorXYZ p
uint npts
RectZone3Di safezone
int lastY
int lastX

Detailed Description

template<class ImageType, class Inst = typename HasPointerIterators<ImageType>::value>
class ImageNeighbors< ImageType, Inst >

This class helps fast iterating through all neighbors of each point of an image.

Two situations are distinguished, if all neighbors are inside image (safe) and if some neighbors are outside image (unsafe)

Definition at line 155 of file MorphologicalOperators.hpp.


Member Data Documentation

template<class ImageType, class Inst = typename HasPointerIterators<ImageType>::value>
Im3DValue** ImageNeighbors< ImageType, Inst >::iterators [private]
 

using this instead of iterators is an important speedup when compiling in debug, (no difference in optimized..)

Definition at line 163 of file MorphologicalOperators.hpp.


The documentation for this class was generated from the following file:
Generated on Fri Jun 17 13:36:18 2005 for ImLib3D by  doxygen 1.4.2