OpenCV  2.4.13.2
Open Source Computer Vision
cv::LineIterator Class Reference

#include <core.hpp>

Public Member Functions

 LineIterator (const Mat &img, Point pt1, Point pt2, int connectivity=8, bool leftToRight=false)
 intializes the iterator More...
 
ucharoperator* ()
 returns pointer to the current pixel More...
 
LineIteratoroperator++ ()
 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

ucharptr
 
const ucharptr0
 
int step
 
int elemSize
 
int err
 
int count
 
int minusDelta
 
int plusDelta
 
int minusStep
 
int plusStep
 

Detailed Description

Line iterator class

The class is used to iterate over all the pixels on the raster line segment connecting two specified points.

Constructor & Destructor Documentation

§ LineIterator()

cv::LineIterator::LineIterator ( const Mat img,
Point  pt1,
Point  pt2,
int  connectivity = 8,
bool  leftToRight = false 
)

intializes the iterator

Member Function Documentation

§ operator*()

uchar * cv::LineIterator::operator* ( )
inline

returns pointer to the current pixel

§ operator++() [1/2]

LineIterator & cv::LineIterator::operator++ ( )
inline

prefix increment operator (++it). shifts iterator to the next pixel

§ operator++() [2/2]

LineIterator cv::LineIterator::operator++ ( int  )
inline

postfix increment operator (it++). shifts iterator to the next pixel

§ pos()

Point cv::LineIterator::pos ( ) const
inline

returns coordinates of the current pixel

Member Data Documentation

§ count

int cv::LineIterator::count

§ elemSize

int cv::LineIterator::elemSize

§ err

int cv::LineIterator::err

§ minusDelta

int cv::LineIterator::minusDelta

§ minusStep

int cv::LineIterator::minusStep

§ plusDelta

int cv::LineIterator::plusDelta

§ plusStep

int cv::LineIterator::plusStep

§ ptr

uchar* cv::LineIterator::ptr

§ ptr0

const uchar* cv::LineIterator::ptr0

§ step

int cv::LineIterator::step

The documentation for this class was generated from the following files: