Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::cv::LineSegment Struct Reference

line segment class (e.g. used for run-length coding) More...

#include <LineSegment.h>

Inheritance diagram for icl::cv::LineSegment:
icl::cv::WorkingLineSegment

List of all members.

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

Detailed Description

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


Constructor & Destructor Documentation

creates an empty uninitialized line segment

icl::cv::LineSegment::LineSegment ( int  x,
int  y,
int  xend 
) [inline]

creates a line segment with given parameters


Member Function Documentation

int icl::cv::LineSegment::len ( ) const [inline]

computes the line segments length (xend-x)


Member Data Documentation

first pixel of this line segment

first pixel AFTER this line segment

y position in the image of this line segment


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines