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