Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
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

Public Member Functions

 LineSegment ()
 creates an empty uninitialized line segment More...
 
 LineSegment (int x, int y, int xend)
 creates a line segment with given parameters More...
 
int len () const
 computes the line segments length (xend-x) More...
 

Public Attributes

int x
 first pixel of this line segment More...
 
int y
 y position in the image of this line segment More...
 
int xend
 first pixel AFTER this line segment More...
 

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

◆ LineSegment() [1/2]

icl::cv::LineSegment::LineSegment ( )
inline

creates an empty uninitialized line segment

◆ LineSegment() [2/2]

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

creates a line segment with given parameters

Member Function Documentation

◆ len()

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

computes the line segments length (xend-x)

Member Data Documentation

◆ x

int icl::cv::LineSegment::x

first pixel of this line segment

◆ xend

int icl::cv::LineSegment::xend

first pixel AFTER this line segment

◆ y

int icl::cv::LineSegment::y

y position in the image of this line segment


The documentation for this struct was generated from the following file: