36 #ifndef __PCL_ORGANIZED_INDEX_ITERATOR__ 37 #define __PCL_ORGANIZED_INDEX_ITERATOR__ 85 virtual bool isValid ()
const = 0;
89 virtual void reset () = 0;
153 #endif // __PCL_ORGANIZED_INDEX_ITERATOR__ virtual bool isValid() const =0
return whether the current visited pixel/point is valid or not.
unsigned operator*() const
returns the pixel/point index in the linearized memory of the image/cloud
unsigned index_
the index of the current pixel/point
virtual void operator++()=0
go to next pixel/point in image/cloud
virtual void reset()=0
resets the iterator to the beginning of the line
This file defines compatibility wrappers for low level I/O functions.
virtual unsigned getRowIndex() const
returns the row index (y-coordinate) of the current pixel/point
OrganizedIndexIterator(unsigned width)
constructor
virtual ~OrganizedIndexIterator()
virtual destructor
virtual unsigned getColumnIndex() const
returns the col index (x-coordinate) of the current pixel/point
base class for iterators on 2-dimensional maps like images/organized clouds etc.
virtual unsigned getIndex() const
returns the pixel/point index in the linearized memory of the image/cloud
unsigned width_
the width of the image/cloud