base class for iterators on 2-dimensional maps like images/organized clouds etc. More...
#include <pcl/geometry/organized_index_iterator.h>
Public Member Functions | |
OrganizedIndexIterator (unsigned width) | |
constructor More... |
|
virtual | ~OrganizedIndexIterator () |
virtual destructor More... |
|
virtual void | operator++ ()=0 |
go to next pixel/point in image/cloud More... |
|
virtual void | operator++ (int) |
go to next pixel/point in image/cloud More... |
|
unsigned | operator* () const |
returns the pixel/point index in the linearized memory of the image/cloud More... |
|
virtual unsigned | getIndex () const |
returns the pixel/point index in the linearized memory of the image/cloud More... |
|
virtual unsigned | getRowIndex () const |
returns the row index (y-coordinate) of the current pixel/point More... |
|
virtual unsigned | getColumnIndex () const |
returns the col index (x-coordinate) of the current pixel/point More... |
|
virtual bool | isValid () const =0 |
return whether the current visited pixel/point is valid or not. More... |
|
virtual void | reset ()=0 |
resets the iterator to the beginning of the line More... |
|
Protected Attributes | |
unsigned | width_ |
the width of the image/cloud More... |
|
unsigned | index_ |
the index of the current pixel/point More... |
|
base class for iterators on 2-dimensional maps like images/organized clouds etc.
Definition at line 44 of file organized_index_iterator.h.
| inline |
constructor
[in] | width | the width of the image/organized cloud |
Definition at line 112 of file organized_index_iterator.h.
| inlinevirtual |
virtual destructor
Definition at line 117 of file organized_index_iterator.h.
| inlinevirtual |
returns the col index (x-coordinate) of the current pixel/point
Reimplemented in pcl::LineIterator.
Definition at line 151 of file organized_index_iterator.h.
| inlinevirtual |
returns the pixel/point index in the linearized memory of the image/cloud
Definition at line 135 of file organized_index_iterator.h.
| inlinevirtual |
returns the row index (y-coordinate) of the current pixel/point
default implementation.
Should be overloaded
Reimplemented in pcl::LineIterator.
Definition at line 144 of file organized_index_iterator.h.
| pure virtual |
return whether the current visited pixel/point is valid or not.
Implemented in pcl::LineIterator.
| inline |
returns the pixel/point index in the linearized memory of the image/cloud
Definition at line 128 of file organized_index_iterator.h.
| pure virtual |
| inlinevirtual |
go to next pixel/point in image/cloud
Definition at line 121 of file organized_index_iterator.h.
References operator++().
| pure virtual |
resets the iterator to the beginning of the line
Implemented in pcl::LineIterator.
| protected |
the index of the current pixel/point
Definition at line 104 of file organized_index_iterator.h.
Referenced by pcl::LineIterator::init(), pcl::LineIterator::operator++(), and pcl::LineIterator::reset().
| protected |
the width of the image/cloud
Definition at line 101 of file organized_index_iterator.h.
Referenced by pcl::LineIterator::init(), and pcl::LineIterator::reset().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_organized_index_iterator.html