Skip to content

Instantly share code, notes, and snippets.

@mdindoffer
Created February 21, 2016 11:58
Show Gist options
  • Save mdindoffer/358d640d5baa5a481a3b to your computer and use it in GitHub Desktop.
Save mdindoffer/358d640d5baa5a481a3b to your computer and use it in GitHub Desktop.
public LineIterator LineIterator(Mat img,Point pt1,Point pt2,int connectivity,bool leftToRight); // classic constructor
public Point next(); // increments internal pointer and returns the next pixel
public Point previous(); // decrements internal pointer and returns the next pixel
public Point current(); // returns current pixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment