#include <core.hpp>
Public Member Functions | |
| LineIterator (const Mat &img, Point pt1, Point pt2, int connectivity=8, bool leftToRight=false) | |
| intializes the iterator More... | |
| uchar * | operator* () |
| returns pointer to the current pixel More... | |
| LineIterator & | operator++ () |
| prefix increment operator (++it). shifts iterator to the next pixel More... | |
| LineIterator | operator++ (int) |
| postfix increment operator (it++). shifts iterator to the next pixel More... | |
| Point | pos () const |
| returns coordinates of the current pixel More... | |
Public Attributes | |
| uchar * | ptr |
| const uchar * | ptr0 |
| int | step |
| int | elemSize |
| int | err |
| int | count |
| int | minusDelta |
| int | plusDelta |
| int | minusStep |
| int | plusStep |
Line iterator class
The class is used to iterate over all the pixels on the raster line segment connecting two specified points.
| cv::LineIterator::LineIterator | ( | const Mat & | img, |
| Point | pt1, | ||
| Point | pt2, | ||
| int | connectivity = 8, |
||
| bool | leftToRight = false |
||
| ) |
intializes the iterator
|
inline |
returns pointer to the current pixel
|
inline |
prefix increment operator (++it). shifts iterator to the next pixel
|
inline |
postfix increment operator (it++). shifts iterator to the next pixel
|
inline |
returns coordinates of the current pixel
| int cv::LineIterator::count |
| int cv::LineIterator::elemSize |
| int cv::LineIterator::err |
| int cv::LineIterator::minusDelta |
| int cv::LineIterator::minusStep |
| int cv::LineIterator::plusDelta |
| int cv::LineIterator::plusStep |
| uchar* cv::LineIterator::ptr |
| const uchar* cv::LineIterator::ptr0 |
| int cv::LineIterator::step |