|
Point Cloud Library (PCL)
1.6.0
|
Organized Index Iterator for iterating over the "pixels" for a given line using the Bresenham algorithm. More...
#include <pcl/geometry/line_iterator.h>


Public Types | |
| enum | Neighborhood { Neighbor4 = 4, Neighbor8 = 8 } |
| Neighborhood connectivity. More... | |
Public Member Functions | |
| LineIterator (unsigned x_start, unsigned y_start, unsigned x_end, unsigned y_end, unsigned width, const Neighborhood &neighborhood=Neighbor8) | |
| Constructor. More... | |
| virtual | ~LineIterator () |
| Destructor. More... | |
| virtual void | operator++ () |
| go to next pixel/point in 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 |
| return whether the current visited pixel/point is valid or not. More... | |
| virtual void | reset () |
| resets the iterator to the beginning of the line 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... | |
Organized Index Iterator for iterating over the "pixels" for a given line using the Bresenham algorithm.
Supports 4 and 8 neighborhood connectivity
Definition at line 48 of file line_iterator.h.
Neighborhood connectivity.
| Enumerator | |
|---|---|
| Neighbor4 | |
| Neighbor8 | |
Definition at line 52 of file line_iterator.h.
|
inline |
Constructor.
| x_start | column of the start pixel of the line |
| y_start | row of the start pixel of the line |
| x_end | column of the end pixel of the line |
| y_end | row of the end pixel of the line |
| width | width of the organized structure e.g. image/cloud/map etc.. |
| neighborhood | connectivity of the neighborhood |
Definition at line 134 of file line_iterator.h.
|
inlinevirtual |
Destructor.
Definition at line 145 of file line_iterator.h.
|
inlinevirtual |
returns the col index (x-coordinate) of the current pixel/point
Reimplemented from pcl::OrganizedIndexIterator.
Definition at line 251 of file line_iterator.h.
|
inlinevirtualinherited |
returns the pixel/point index in the linearized memory of the image/cloud
Definition at line 131 of file organized_index_iterator.h.
|
inlinevirtual |
returns the row index (y-coordinate) of the current pixel/point
default implementation.
Should be overloaded
Reimplemented from pcl::OrganizedIndexIterator.
Definition at line 244 of file line_iterator.h.
|
inlinevirtual |
return whether the current visited pixel/point is valid or not.
Implements pcl::OrganizedIndexIterator.
Definition at line 258 of file line_iterator.h.
|
inlineinherited |
returns the pixel/point index in the linearized memory of the image/cloud
Definition at line 124 of file organized_index_iterator.h.
|
inlinevirtualinherited |
go to next pixel/point in image/cloud
Definition at line 117 of file organized_index_iterator.h.
|
inlinevirtual |
go to next pixel/point in image/cloud
Implements pcl::OrganizedIndexIterator.
Definition at line 224 of file line_iterator.h.
|
inlinevirtual |
resets the iterator to the beginning of the line
Implements pcl::OrganizedIndexIterator.
Definition at line 265 of file line_iterator.h.
1.8.4