Image Component Library (ICL)
|
line segment class (e.g. used for run-length coding) More...
#include <LineSegment.h>
Public Member Functions | |
LineSegment () | |
creates an empty uninitialized line segment | |
LineSegment (int x, int y, int xend) | |
creates a line segment with given parameters | |
int | len () const |
computes the line segments length (xend-x) | |
Public Attributes | |
int | x |
first pixel of this line segment | |
int | y |
y position in the image of this line segment | |
int | xend |
first pixel AFTER this line segment |
line segment class (e.g. used for run-length coding)
A line segment represents a set of successive pixels in one image line that have the same value. Note: the LineSegment's xend location is the first pixel after the LineSegment, that does not have the same value
icl::cv::LineSegment::LineSegment | ( | ) | [inline] |
creates an empty uninitialized line segment
icl::cv::LineSegment::LineSegment | ( | int | x, |
int | y, | ||
int | xend | ||
) | [inline] |
creates a line segment with given parameters
int icl::cv::LineSegment::len | ( | ) | const [inline] |
computes the line segments length (xend-x)
first pixel of this line segment
first pixel AFTER this line segment
y position in the image of this line segment