added improved ORB implementation, convex-convex polygon intersection, eigen2x2 low-level function ...
This commit is contained in:
@@ -729,6 +729,8 @@ public:
|
||||
_Tp dot(const Point_& pt) const;
|
||||
//! dot product computed in double-precision arithmetics
|
||||
double ddot(const Point_& pt) const;
|
||||
//! cross-product
|
||||
double cross(const Point_& pt) const;
|
||||
//! checks whether the point is inside the specified rectangle
|
||||
bool inside(const Rect_<_Tp>& r) const;
|
||||
|
||||
@@ -1274,6 +1276,7 @@ public:
|
||||
_InputArray();
|
||||
_InputArray(const Mat& m);
|
||||
_InputArray(const MatExpr& expr);
|
||||
template<typename _Tp> _InputArray(const _Tp* vec, int n);
|
||||
template<typename _Tp> _InputArray(const vector<_Tp>& vec);
|
||||
template<typename _Tp> _InputArray(const vector<vector<_Tp> >& vec);
|
||||
_InputArray(const vector<Mat>& vec);
|
||||
@@ -1323,6 +1326,7 @@ public:
|
||||
template<typename _Tp> _OutputArray(vector<vector<_Tp> >& vec);
|
||||
_OutputArray(vector<Mat>& vec);
|
||||
template<typename _Tp, int m, int n> _OutputArray(Matx<_Tp, m, n>& matx);
|
||||
template<typename _Tp> _OutputArray(_Tp* vec, int n);
|
||||
virtual bool fixedSize() const;
|
||||
virtual bool fixedType() const;
|
||||
virtual bool needed() const;
|
||||
|
@@ -1112,6 +1112,9 @@ template<typename _Tp> inline _InputArray::_InputArray(const vector<vector<_Tp>
|
||||
|
||||
template<typename _Tp, int m, int n> inline _InputArray::_InputArray(const Matx<_Tp, m, n>& mtx)
|
||||
: flags(MATX + DataType<_Tp>::type), obj((void*)&mtx), sz(n, m) {}
|
||||
|
||||
template<typename _Tp> inline _InputArray::_InputArray(const _Tp* vec, int n)
|
||||
: flags(MATX + DataType<_Tp>::type), obj((void*)vec), sz(n, 1) {}
|
||||
|
||||
inline _InputArray::_InputArray(const Scalar& s)
|
||||
: flags(MATX + CV_64F), obj((void*)&s), sz(1, 4) {}
|
||||
@@ -1119,6 +1122,7 @@ inline _InputArray::_InputArray(const Scalar& s)
|
||||
template<typename _Tp> inline _OutputArray::_OutputArray(vector<_Tp>& vec) : _InputArray(vec) {}
|
||||
template<typename _Tp> inline _OutputArray::_OutputArray(vector<vector<_Tp> >& vec) : _InputArray(vec) {}
|
||||
template<typename _Tp, int m, int n> inline _OutputArray::_OutputArray(Matx<_Tp, m, n>& mtx) : _InputArray(mtx) {}
|
||||
template<typename _Tp> inline _OutputArray::_OutputArray(_Tp* vec, int n) : _InputArray(vec, n) {}
|
||||
|
||||
//////////////////////////////////// Matrix Expressions /////////////////////////////////////////
|
||||
|
||||
|
@@ -1599,6 +1599,9 @@ template<typename _Tp> inline _Tp Point_<_Tp>::dot(const Point_& pt) const
|
||||
template<typename _Tp> inline double Point_<_Tp>::ddot(const Point_& pt) const
|
||||
{ return (double)x*pt.x + (double)y*pt.y; }
|
||||
|
||||
template<typename _Tp> inline double Point_<_Tp>::cross(const Point_& pt) const
|
||||
{ return (double)x*pt.y - (double)y*pt.x; }
|
||||
|
||||
template<typename _Tp> static inline Point_<_Tp>&
|
||||
operator += (Point_<_Tp>& a, const Point_<_Tp>& b)
|
||||
{
|
||||
|
Reference in New Issue
Block a user