#include <linebase.h>
Public Member Functions | |
T & | A () |
const T & | A () const |
T & | B () |
const T & | B () const |
T & | C () |
const T & | C () const |
template<typename T2 > | |
T | 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 |
Definition at line 32 of file linebase.h.
V4R::Line2D< T >::Line2D | ( | ) | [inline] |
Definition at line 37 of file linebase.h.
V4R::Line2D< T >::Line2D | ( | const Line2D< T > & | l | ) | [inline] |
Definition at line 38 of file linebase.h.
V4R::Line2D< T >::Line2D | ( | cv::Vec< T, 3 > & | r, |
bool | normalize = true |
||
) | [inline] |
Definition at line 39 of file linebase.h.
V4R::Line2D< T >::Line2D | ( | cv::Mat & | r, |
bool | normalize = true |
||
) | [inline] |
Definition at line 43 of file linebase.h.
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.
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.
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.
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.
T& V4R::Line2D< T >::A | ( | ) | [inline] |
Definition at line 64 of file linebase.h.
const T& V4R::Line2D< T >::A | ( | ) | const [inline] |
Definition at line 67 of file linebase.h.
T& V4R::Line2D< T >::B | ( | ) | [inline] |
Definition at line 70 of file linebase.h.
const T& V4R::Line2D< T >::B | ( | ) | const [inline] |
Definition at line 73 of file linebase.h.
T& V4R::Line2D< T >::C | ( | ) | [inline] |
Definition at line 76 of file linebase.h.
const T& V4R::Line2D< T >::C | ( | ) | const [inline] |
Definition at line 79 of file linebase.h.
T V4R::Line2D< T >::distanceToLine | ( | const cv::Point_< T2 > & | p | ) | [inline] |
Definition at line 88 of file linebase.h.
std::vector<T> V4R::Line2D< T >::distanceToLine | ( | const std::vector< cv::Point_< T2 > > & | points | ) | [inline] |
Definition at line 93 of file linebase.h.
cv::Vec<T,3>& V4R::Line2D< T >::eq | ( | ) | [inline] |
Definition at line 108 of file linebase.h.
std::string V4R::Line2D< T >::human_readable | ( | ) | const [inline] |
produces a human readable string
Definition at line 142 of file linebase.h.
cv::Point_<T> V4R::Line2D< T >::intersection | ( | const Line2D< T > & | l | ) | const [inline] |
Definition at line 104 of file linebase.h.
cv::Point_<T> V4R::Line2D< T >::nearestPointOnLine | ( | const cv::Point_< T2 > & | p | ) | [inline] |
Definition at line 100 of file linebase.h.
cv::Vec<T,2> V4R::Line2D< T >::normal | ( | ) | [inline] |
Definition at line 111 of file linebase.h.
void V4R::Line2D< T >::normalize | ( | ) | [inline] |
Definition at line 82 of file linebase.h.
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.
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.
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.
const cv::Vec<T,3>& V4R::Line2D< T >::vec | ( | ) | const [inline] |
Definition at line 114 of file linebase.h.
friend class Line2DHdl [friend] |
Definition at line 33 of file linebase.h.
cv::Vec<T,3> V4R::Line2D< T >::eq_ [protected] |
Definition at line 35 of file linebase.h.