Public Member Functions | Protected Attributes | Friends
V4R::Line2D< T > Class Template Reference

#include <linebase.h>

List of all members.

Public Member Functions

T & A ()
const T & A () const
T & B ()
const T & B () const
T & C ()
const T & C () const
template<typename T2 >
distanceToLine (const cv::Point_< T2 > &p)
template<typename T2 >
std::vector< T > distanceToLine (const std::vector< cv::Point_< T2 > > &points)
cv::Vec< T, 3 > & eq ()
std::string human_readable () const
cv::Point_< T > intersection (const Line2D< T > &l) const
 Line2D ()
 Line2D (const Line2D &l)
 Line2D (cv::Vec< T, 3 > &r, bool normalize=true)
 Line2D (cv::Mat &r, bool normalize=true)
template<typename T2 >
 Line2D (const T2 &x1, const T2 &y1, const T2 &x2, const T2 &y2, bool normalize=true)
template<typename T2 >
 Line2D (const cv::Point_< T2 > &pt1, const cv::Point_< T2 > &pt2, bool normalize=true)
template<typename T2 >
 Line2D (const cv::Point3_< T2 > &pt1, const cv::Point3_< T2 > &pt2, bool normalize=true)
template<typename T2 , int cn>
 Line2D (const cv::Vec< T2, cn > &v1, const cv::Vec< T2, cn > &v2, bool normalize=true)
template<typename T2 >
cv::Point_< T > nearestPointOnLine (const cv::Point_< T2 > &p)
cv::Vec< T, 2 > normal ()
void normalize ()
template<typename T2 >
void set (const cv::Point_< T2 > &pt1, const cv::Point_< T2 > &pt2, bool normalize=true)
template<typename T2 >
void set (const cv::Point3_< T2 > &pt1, const cv::Point3_< T2 > &pt2, bool normalize=true)
template<typename T2 , int cn>
void set (const cv::Vec< T2, cn > &v1, const cv::Vec< T2, cn > &v2, bool normalize=true)
const cv::Vec< T, 3 > & vec () const

Protected Attributes

cv::Vec< T, 3 > eq_

Friends

class Line2DHdl

Detailed Description

template<typename T>
class V4R::Line2D< T >

Definition at line 32 of file linebase.h.


Constructor & Destructor Documentation

template<typename T>
V4R::Line2D< T >::Line2D ( ) [inline]

Definition at line 37 of file linebase.h.

template<typename T>
V4R::Line2D< T >::Line2D ( const Line2D< T > &  l) [inline]

Definition at line 38 of file linebase.h.

template<typename T>
V4R::Line2D< T >::Line2D ( cv::Vec< T, 3 > &  r,
bool  normalize = true 
) [inline]

Definition at line 39 of file linebase.h.

template<typename T>
V4R::Line2D< T >::Line2D ( cv::Mat &  r,
bool  normalize = true 
) [inline]

Definition at line 43 of file linebase.h.

template<typename T>
template<typename T2 >
V4R::Line2D< T >::Line2D ( const T2 &  x1,
const T2 &  y1,
const T2 &  x2,
const T2 &  y2,
bool  normalize = true 
) [inline]

Definition at line 49 of file linebase.h.

template<typename T>
template<typename T2 >
V4R::Line2D< T >::Line2D ( const cv::Point_< T2 > &  pt1,
const cv::Point_< T2 > &  pt2,
bool  normalize = true 
) [inline]

Definition at line 53 of file linebase.h.

template<typename T>
template<typename T2 >
V4R::Line2D< T >::Line2D ( const cv::Point3_< T2 > &  pt1,
const cv::Point3_< T2 > &  pt2,
bool  normalize = true 
) [inline]

Definition at line 57 of file linebase.h.

template<typename T>
template<typename T2 , int cn>
V4R::Line2D< T >::Line2D ( const cv::Vec< T2, cn > &  v1,
const cv::Vec< T2, cn > &  v2,
bool  normalize = true 
) [inline]

Definition at line 61 of file linebase.h.


Member Function Documentation

template<typename T>
T& V4R::Line2D< T >::A ( ) [inline]

Definition at line 64 of file linebase.h.

template<typename T>
const T& V4R::Line2D< T >::A ( ) const [inline]

Definition at line 67 of file linebase.h.

template<typename T>
T& V4R::Line2D< T >::B ( ) [inline]

Definition at line 70 of file linebase.h.

template<typename T>
const T& V4R::Line2D< T >::B ( ) const [inline]

Definition at line 73 of file linebase.h.

template<typename T>
T& V4R::Line2D< T >::C ( ) [inline]

Definition at line 76 of file linebase.h.

template<typename T>
const T& V4R::Line2D< T >::C ( ) const [inline]

Definition at line 79 of file linebase.h.

template<typename T>
template<typename T2 >
T V4R::Line2D< T >::distanceToLine ( const cv::Point_< T2 > &  p) [inline]
Precondition:
normalize

Definition at line 88 of file linebase.h.

template<typename T>
template<typename T2 >
std::vector<T> V4R::Line2D< T >::distanceToLine ( const std::vector< cv::Point_< T2 > > &  points) [inline]
Precondition:
normalize

Definition at line 93 of file linebase.h.

template<typename T>
cv::Vec<T,3>& V4R::Line2D< T >::eq ( ) [inline]

Definition at line 108 of file linebase.h.

template<typename T>
std::string V4R::Line2D< T >::human_readable ( ) const [inline]

produces a human readable string

Returns:
string l = [ %-8.3f, %-8.3f, %-8.3f]"

Definition at line 142 of file linebase.h.

template<typename T>
cv::Point_<T> V4R::Line2D< T >::intersection ( const Line2D< T > &  l) const [inline]

Definition at line 104 of file linebase.h.

template<typename T>
template<typename T2 >
cv::Point_<T> V4R::Line2D< T >::nearestPointOnLine ( const cv::Point_< T2 > &  p) [inline]
Precondition:
normalize

Definition at line 100 of file linebase.h.

template<typename T>
cv::Vec<T,2> V4R::Line2D< T >::normal ( ) [inline]

Definition at line 111 of file linebase.h.

template<typename T>
void V4R::Line2D< T >::normalize ( ) [inline]

Definition at line 82 of file linebase.h.

template<typename T>
template<typename T2 >
void V4R::Line2D< T >::set ( const cv::Point_< T2 > &  pt1,
const cv::Point_< T2 > &  pt2,
bool  normalize = true 
) [inline]

Definition at line 118 of file linebase.h.

template<typename T>
template<typename T2 >
void V4R::Line2D< T >::set ( const cv::Point3_< T2 > &  pt1,
const cv::Point3_< T2 > &  pt2,
bool  normalize = true 
) [inline]

Definition at line 125 of file linebase.h.

template<typename T>
template<typename T2 , int cn>
void V4R::Line2D< T >::set ( const cv::Vec< T2, cn > &  v1,
const cv::Vec< T2, cn > &  v2,
bool  normalize = true 
) [inline]

Definition at line 132 of file linebase.h.

template<typename T>
const cv::Vec<T,3>& V4R::Line2D< T >::vec ( ) const [inline]

Definition at line 114 of file linebase.h.


Friends And Related Function Documentation

template<typename T>
friend class Line2DHdl [friend]

Definition at line 33 of file linebase.h.


Member Data Documentation

template<typename T>
cv::Vec<T,3> V4R::Line2D< T >::eq_ [protected]

Definition at line 35 of file linebase.h.


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


v4r_laser_robot_calibration
Author(s):
autogenerated on Wed Aug 26 2015 16:42:08