cv::LineIterator Class Reference

#include <core.hpp>

List of all members.

Public Member Functions

 LineIterator (const Mat &img, Point pt1, Point pt2, int connectivity=8, bool leftToRight=false)
 intializes the iterator
ucharoperator* ()
 returns pointer to the current pixel
LineIterator operator++ (int)
 postfix increment operator (it++). shifts iterator to the next pixel
LineIteratoroperator++ ()
 prefix increment operator (++it). shifts iterator to the next pixel
Point pos () const
 returns coordinates of the current pixel

Public Attributes

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

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

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

intializes the iterator


Member Function Documentation

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

returns pointer to the current pixel

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

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

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

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

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

returns coordinates of the current pixel


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Dec 23 11:40:55 2010 for opencv by  doxygen 1.6.3