55 x(x),y(y),xend(xend){}
58 int len()
const {
return xend-x; }
64 return s <<
"LineSegment(x="<<l.
x<<
" y="<<l.
y<<
" len="<<l.
len()<<
")";
int len() const
computes the line segments length (xend-x)
Definition: LineSegment.h:58
undocument this line if you encounter any issues!
Definition: Any.h:37
std::ostream & operator<<(std::ostream &s, const LineSegment &l)
ostream operator for the line-segment type
Definition: LineSegment.h:63
LineSegment(int x, int y, int xend)
creates a line segment with given parameters
Definition: LineSegment.h:54
int x
first pixel of this line segment
Definition: LineSegment.h:46
int xend
first pixel AFTER this line segment
Definition: LineSegment.h:48
line segment class (e.g. used for run-length coding)
Definition: LineSegment.h:45
LineSegment()
creates an empty uninitialized line segment
Definition: LineSegment.h:51
#define ICLCV_API
Definition: CompatMacros.h:177
int y
y position in the image of this line segment
Definition: LineSegment.h:47