ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Linie Class Reference

a strait line with polar coordinates and end points More...

#include <linien.h>

Inheritance diagram for Linie:
Inheritance graph
Collaboration diagram for Linie:
Collaboration graph

Public Member Functions

 Linie (double l=0, double o=0, double r=0, double u=0)
 
template<class _point1 , class _point2 >
 Linie (const _point1 &p1, const _point2 &p2)
 
template<class _t >
 Linie (const Pos< 2, _t > &p1, const Pos< 2, _t > &p2)
 
 Linie (const DMatrix< 2, 1 > &p1, const DMatrix< 2, 1 > &p2)
 
double GetLen () const
 the length of the line More...
 
double GetOben () const
 
double GetLinks () const
 
double GetUnten () const
 
double GetRechts () const
 
double abstand (const Linie &l) const
 a heuristic distance metric More...
 
double abstand (const PolLinie &l) const
 a heuristic distance metric More...
 
template<class _point >
double abstand (const _point p) const
 distance metric: euclidian More...
 
Pos< 2, double > SchnittPunktAufStrecke (const PolLinie &l2) const
 
bool IstAufStrecke (const Pos< 2, double > &p) const
 
bool IstAufStrecke (const DMatrix< 2, 1 > &p) const
 
- Public Member Functions inherited from PolLinie
 PolLinie (double w=0, double p=0)
 
double GetWinkel () const
 angle of the line More...
 
double GetPolAbs () const
 distance between the line an the origin More...
 
template<class _point >
double abstand (const _point &p) const
 distance metric: euclidian More...
 
template<class _point >
double wert (const _point &p) const
 the value of the line function More...
 
double wert (const Pos< 2, double > &p) const
 
double wert (const DMatrix< 2, 1 > &p) const
 
Pos< 2, double > SchnittPunkt (const PolLinie &l2) const
 
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void IncRefCount ()
 
void DecRefCount ()
 

Protected Member Functions

void ComputePolardarstellung ()
 compute the polar line function from the end points More...
 

Protected Attributes

double oben
 
double links
 
double unten
 
double rechts
 
- Protected Attributes inherited from PolLinie
double winkel
 
double polAbs
 

Detailed Description

a strait line with polar coordinates and end points

Definition at line 104 of file linien.h.

Constructor & Destructor Documentation

Linie::Linie ( double  l = 0,
double  o = 0,
double  r = 0,
double  u = 0 
)

Definition at line 125 of file linien.h.

References ComputePolardarstellung().

template<class _point1 , class _point2 >
Linie::Linie ( const _point1 &  p1,
const _point2 &  p2 
)

Definition at line 131 of file linien.h.

References ComputePolardarstellung().

template<class _t >
Linie::Linie ( const Pos< 2, _t > &  p1,
const Pos< 2, _t > &  p2 
)

Definition at line 137 of file linien.h.

References ComputePolardarstellung().

Linie::Linie ( const DMatrix< 2, 1 > &  p1,
const DMatrix< 2, 1 > &  p2 
)

Definition at line 142 of file linien.h.

References ComputePolardarstellung().

Member Function Documentation

double Linie::abstand ( const Linie l) const

a heuristic distance metric

Definition at line 168 of file linien.h.

References _PI, PolLinie::abstand(), GetLinks(), GetOben(), GetRechts(), GetUnten(), and PolLinie::GetWinkel().

double Linie::abstand ( const PolLinie l) const

a heuristic distance metric

Definition at line 189 of file linien.h.

References PolLinie::abstand(), GetLinks(), GetOben(), GetRechts(), and GetUnten().

template<class _point >
double Linie::abstand ( const _point  p) const

distance metric: euclidian

See Also
PolLinie::abstand<_point>

Definition at line 200 of file linien.h.

void Linie::ComputePolardarstellung ( )
protected

compute the polar line function from the end points

Definition at line 110 of file linien.h.

References GetLen(), links, oben, PolLinie::polAbs, rechts, unten, and PolLinie::winkel.

Referenced by Linie().

double Linie::GetLen ( ) const

the length of the line

Definition at line 148 of file linien.h.

References links, oben, rechts, and unten.

Referenced by ComputePolardarstellung(), OpticalFlow::GetWinkel(), PrintArrow(), and OpticalFlow::PrintFlowField().

double Linie::GetLinks ( ) const

Definition at line 157 of file linien.h.

References links.

Referenced by abstand(), operator<<(), PrintArrow(), and PrintLine().

double Linie::GetOben ( ) const

Definition at line 154 of file linien.h.

References oben.

Referenced by abstand(), operator<<(), PrintArrow(), and PrintLine().

double Linie::GetRechts ( ) const

Definition at line 163 of file linien.h.

References rechts.

Referenced by abstand(), operator<<(), PrintArrow(), and PrintLine().

double Linie::GetUnten ( ) const

Definition at line 160 of file linien.h.

References unten.

Referenced by abstand(), operator<<(), PrintArrow(), and PrintLine().

bool Linie::IstAufStrecke ( const Pos< 2, double > &  p) const

Definition at line 223 of file linien.h.

bool Linie::IstAufStrecke ( const DMatrix< 2, 1 > &  p) const

Definition at line 226 of file linien.h.

References Len(), links, oben, rechts, and unten.

Pos<2,double> Linie::SchnittPunktAufStrecke ( const PolLinie l2) const

Definition at line 204 of file linien.h.

References Len(), links, oben, rechts, PolLinie::SchnittPunkt(), and unten.

Member Data Documentation

double Linie::links
protected
double Linie::oben
protected
double Linie::rechts
protected
double Linie::unten
protected

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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)