Commit 7164f223 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3701 from jet47:internal-namespace

parents 5466e321 a932d8ab
...@@ -872,8 +872,8 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO ...@@ -872,8 +872,8 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
if ((flags & CALIB_FIX_INTRINSIC)) if ((flags & CALIB_FIX_INTRINSIC))
{ {
internal::CalibrateExtrinsics(objectPoints, imagePoints1, intrinsicLeft, check_cond, thresh_cond, rvecs1, tvecs1); cv::internal::CalibrateExtrinsics(objectPoints, imagePoints1, intrinsicLeft, check_cond, thresh_cond, rvecs1, tvecs1);
internal::CalibrateExtrinsics(objectPoints, imagePoints2, intrinsicRight, check_cond, thresh_cond, rvecs2, tvecs2); cv::internal::CalibrateExtrinsics(objectPoints, imagePoints2, intrinsicRight, check_cond, thresh_cond, rvecs2, tvecs2);
} }
intrinsicLeft.isEstimate[0] = flags & CALIB_FIX_INTRINSIC ? 0 : 1; intrinsicLeft.isEstimate[0] = flags & CALIB_FIX_INTRINSIC ? 0 : 1;
...@@ -918,8 +918,8 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO ...@@ -918,8 +918,8 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
om_ref.reshape(3, 1).copyTo(om_list.col(image_idx)); om_ref.reshape(3, 1).copyTo(om_list.col(image_idx));
T_ref.reshape(3, 1).copyTo(T_list.col(image_idx)); T_ref.reshape(3, 1).copyTo(T_list.col(image_idx));
} }
cv::Vec3d omcur = internal::median3d(om_list); cv::Vec3d omcur = cv::internal::median3d(om_list);
cv::Vec3d Tcur = internal::median3d(T_list); cv::Vec3d Tcur = cv::internal::median3d(T_list);
cv::Mat J = cv::Mat::zeros(4 * n_points * n_images, 18 + 6 * (n_images + 1), CV_64FC1), cv::Mat J = cv::Mat::zeros(4 * n_points * n_images, 18 + 6 * (n_images + 1), CV_64FC1),
e = cv::Mat::zeros(4 * n_points * n_images, 1, CV_64FC1), Jkk, ekk; e = cv::Mat::zeros(4 * n_points * n_images, 1, CV_64FC1), Jkk, ekk;
...@@ -961,7 +961,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO ...@@ -961,7 +961,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
jacobians.col(14).copyTo(Jkk.col(4).rowRange(0, 2 * n_points)); jacobians.col(14).copyTo(Jkk.col(4).rowRange(0, 2 * n_points));
//right camera jacobian //right camera jacobian
internal::compose_motion(rvec, tvec, omcur, Tcur, omr, Tr, domrdomckk, domrdTckk, domrdom, domrdT, dTrdomckk, dTrdTckk, dTrdom, dTrdT); cv::internal::compose_motion(rvec, tvec, omcur, Tcur, omr, Tr, domrdomckk, domrdTckk, domrdom, domrdT, dTrdomckk, dTrdTckk, dTrdom, dTrdT);
rvec = cv::Mat(rvecs2[image_idx]); rvec = cv::Mat(rvecs2[image_idx]);
tvec = cv::Mat(tvecs2[image_idx]); tvec = cv::Mat(tvecs2[image_idx]);
......
...@@ -817,7 +817,7 @@ Vec<_Tp, n> Matx<_Tp, m, n>::solve(const Vec<_Tp, m>& rhs, int method) const ...@@ -817,7 +817,7 @@ Vec<_Tp, n> Matx<_Tp, m, n>::solve(const Vec<_Tp, m>& rhs, int method) const
template<typename _Tp, int m> static inline template<typename _Tp, int m> static inline
double determinant(const Matx<_Tp, m, m>& a) double determinant(const Matx<_Tp, m, m>& a)
{ {
return internal::Matx_DetOp<_Tp, m>()(a); return cv::internal::Matx_DetOp<_Tp, m>()(a);
} }
template<typename _Tp, int m, int n> static inline template<typename _Tp, int m, int n> static inline
...@@ -960,25 +960,25 @@ Vec<_Tp, cn> Vec<_Tp, cn>::mul(const Vec<_Tp, cn>& v) const ...@@ -960,25 +960,25 @@ Vec<_Tp, cn> Vec<_Tp, cn>::mul(const Vec<_Tp, cn>& v) const
template<> inline template<> inline
Vec<float, 2> Vec<float, 2>::conj() const Vec<float, 2> Vec<float, 2>::conj() const
{ {
return internal::conjugate(*this); return cv::internal::conjugate(*this);
} }
template<> inline template<> inline
Vec<double, 2> Vec<double, 2>::conj() const Vec<double, 2> Vec<double, 2>::conj() const
{ {
return internal::conjugate(*this); return cv::internal::conjugate(*this);
} }
template<> inline template<> inline
Vec<float, 4> Vec<float, 4>::conj() const Vec<float, 4> Vec<float, 4>::conj() const
{ {
return internal::conjugate(*this); return cv::internal::conjugate(*this);
} }
template<> inline template<> inline
Vec<double, 4> Vec<double, 4>::conj() const Vec<double, 4> Vec<double, 4>::conj() const
{ {
return internal::conjugate(*this); return cv::internal::conjugate(*this);
} }
template<typename _Tp, int cn> inline template<typename _Tp, int cn> inline
......
...@@ -193,7 +193,7 @@ Matx<_Tp, n, m> Matx<_Tp, m, n>::inv(int method, bool *p_is_ok /*= NULL*/) const ...@@ -193,7 +193,7 @@ Matx<_Tp, n, m> Matx<_Tp, m, n>::inv(int method, bool *p_is_ok /*= NULL*/) const
Matx<_Tp, n, m> b; Matx<_Tp, n, m> b;
bool ok; bool ok;
if( method == DECOMP_LU || method == DECOMP_CHOLESKY ) if( method == DECOMP_LU || method == DECOMP_CHOLESKY )
ok = internal::Matx_FastInvOp<_Tp, m>()(*this, b, method); ok = cv::internal::Matx_FastInvOp<_Tp, m>()(*this, b, method);
else else
{ {
Mat A(*this, false), B(b, false); Mat A(*this, false), B(b, false);
...@@ -209,7 +209,7 @@ Matx<_Tp, n, l> Matx<_Tp, m, n>::solve(const Matx<_Tp, m, l>& rhs, int method) c ...@@ -209,7 +209,7 @@ Matx<_Tp, n, l> Matx<_Tp, m, n>::solve(const Matx<_Tp, m, l>& rhs, int method) c
Matx<_Tp, n, l> x; Matx<_Tp, n, l> x;
bool ok; bool ok;
if( method == DECOMP_LU || method == DECOMP_CHOLESKY ) if( method == DECOMP_LU || method == DECOMP_CHOLESKY )
ok = internal::Matx_FastSolveOp<_Tp, m, l>()(*this, rhs, x, method); ok = cv::internal::Matx_FastSolveOp<_Tp, m, l>()(*this, rhs, x, method);
else else
{ {
Mat A(*this, false), B(rhs, false), X(x, false); Mat A(*this, false), B(rhs, false), X(x, false);
......
...@@ -914,7 +914,7 @@ void write(FileStorage& fs, const Range& r ) ...@@ -914,7 +914,7 @@ void write(FileStorage& fs, const Range& r )
template<typename _Tp> static inline template<typename _Tp> static inline
void write( FileStorage& fs, const std::vector<_Tp>& vec ) void write( FileStorage& fs, const std::vector<_Tp>& vec )
{ {
internal::VecWriterProxy<_Tp, DataType<_Tp>::fmt != 0> w(&fs); cv::internal::VecWriterProxy<_Tp, DataType<_Tp>::fmt != 0> w(&fs);
w(vec); w(vec);
} }
...@@ -922,63 +922,63 @@ void write( FileStorage& fs, const std::vector<_Tp>& vec ) ...@@ -922,63 +922,63 @@ void write( FileStorage& fs, const std::vector<_Tp>& vec )
template<typename _Tp> static inline template<typename _Tp> static inline
void write(FileStorage& fs, const String& name, const Point_<_Tp>& pt ) void write(FileStorage& fs, const String& name, const Point_<_Tp>& pt )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, pt); write(fs, pt);
} }
template<typename _Tp> static inline template<typename _Tp> static inline
void write(FileStorage& fs, const String& name, const Point3_<_Tp>& pt ) void write(FileStorage& fs, const String& name, const Point3_<_Tp>& pt )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, pt); write(fs, pt);
} }
template<typename _Tp> static inline template<typename _Tp> static inline
void write(FileStorage& fs, const String& name, const Size_<_Tp>& sz ) void write(FileStorage& fs, const String& name, const Size_<_Tp>& sz )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, sz); write(fs, sz);
} }
template<typename _Tp> static inline template<typename _Tp> static inline
void write(FileStorage& fs, const String& name, const Complex<_Tp>& c ) void write(FileStorage& fs, const String& name, const Complex<_Tp>& c )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, c); write(fs, c);
} }
template<typename _Tp> static inline template<typename _Tp> static inline
void write(FileStorage& fs, const String& name, const Rect_<_Tp>& r ) void write(FileStorage& fs, const String& name, const Rect_<_Tp>& r )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, r); write(fs, r);
} }
template<typename _Tp, int cn> static inline template<typename _Tp, int cn> static inline
void write(FileStorage& fs, const String& name, const Vec<_Tp, cn>& v ) void write(FileStorage& fs, const String& name, const Vec<_Tp, cn>& v )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, v); write(fs, v);
} }
template<typename _Tp> static inline template<typename _Tp> static inline
void write(FileStorage& fs, const String& name, const Scalar_<_Tp>& s ) void write(FileStorage& fs, const String& name, const Scalar_<_Tp>& s )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, s); write(fs, s);
} }
static inline static inline
void write(FileStorage& fs, const String& name, const Range& r ) void write(FileStorage& fs, const String& name, const Range& r )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+FileNode::FLOW);
write(fs, r); write(fs, r);
} }
template<typename _Tp> static inline template<typename _Tp> static inline
void write( FileStorage& fs, const String& name, const std::vector<_Tp>& vec ) void write( FileStorage& fs, const String& name, const std::vector<_Tp>& vec )
{ {
internal::WriteStructContext ws(fs, name, FileNode::SEQ+(DataType<_Tp>::fmt != 0 ? FileNode::FLOW : 0)); cv::internal::WriteStructContext ws(fs, name, FileNode::SEQ+(DataType<_Tp>::fmt != 0 ? FileNode::FLOW : 0));
write(fs, vec); write(fs, vec);
} }
...@@ -1030,7 +1030,7 @@ void read(const FileNode& node, short& value, short default_value) ...@@ -1030,7 +1030,7 @@ void read(const FileNode& node, short& value, short default_value)
template<typename _Tp> static inline template<typename _Tp> static inline
void read( FileNodeIterator& it, std::vector<_Tp>& vec, size_t maxCount = (size_t)INT_MAX ) void read( FileNodeIterator& it, std::vector<_Tp>& vec, size_t maxCount = (size_t)INT_MAX )
{ {
internal::VecReaderProxy<_Tp, DataType<_Tp>::fmt != 0> r(&it); cv::internal::VecReaderProxy<_Tp, DataType<_Tp>::fmt != 0> r(&it);
r(vec, maxCount); r(vec, maxCount);
} }
...@@ -1101,7 +1101,7 @@ FileNodeIterator& operator >> (FileNodeIterator& it, _Tp& value) ...@@ -1101,7 +1101,7 @@ FileNodeIterator& operator >> (FileNodeIterator& it, _Tp& value)
template<typename _Tp> static inline template<typename _Tp> static inline
FileNodeIterator& operator >> (FileNodeIterator& it, std::vector<_Tp>& vec) FileNodeIterator& operator >> (FileNodeIterator& it, std::vector<_Tp>& vec)
{ {
internal::VecReaderProxy<_Tp, DataType<_Tp>::fmt != 0> r(&it); cv::internal::VecReaderProxy<_Tp, DataType<_Tp>::fmt != 0> r(&it);
r(vec, (size_t)INT_MAX); r(vec, (size_t)INT_MAX);
return it; return it;
} }
......
...@@ -423,7 +423,7 @@ void AlgorithmInfo::write(const Algorithm* algo, FileStorage& fs) const ...@@ -423,7 +423,7 @@ void AlgorithmInfo::write(const Algorithm* algo, FileStorage& fs) const
cv::write(fs, pname, algo->get<std::vector<Mat> >(pname)); cv::write(fs, pname, algo->get<std::vector<Mat> >(pname));
else if( p.type == Param::ALGORITHM ) else if( p.type == Param::ALGORITHM )
{ {
internal::WriteStructContext ws(fs, pname, CV_NODE_MAP); cv::internal::WriteStructContext ws(fs, pname, CV_NODE_MAP);
Ptr<Algorithm> nestedAlgo = algo->get<Algorithm>(pname); Ptr<Algorithm> nestedAlgo = algo->get<Algorithm>(pname);
nestedAlgo->write(fs); nestedAlgo->write(fs);
} }
......
...@@ -5548,7 +5548,7 @@ void read( const FileNode& node, SparseMat& mat, const SparseMat& default_mat ) ...@@ -5548,7 +5548,7 @@ void read( const FileNode& node, SparseMat& mat, const SparseMat& default_mat )
void write(FileStorage& fs, const String& objname, const std::vector<KeyPoint>& keypoints) void write(FileStorage& fs, const String& objname, const std::vector<KeyPoint>& keypoints)
{ {
internal::WriteStructContext ws(fs, objname, CV_NODE_SEQ + CV_NODE_FLOW); cv::internal::WriteStructContext ws(fs, objname, CV_NODE_SEQ + CV_NODE_FLOW);
int i, npoints = (int)keypoints.size(); int i, npoints = (int)keypoints.size();
for( i = 0; i < npoints; i++ ) for( i = 0; i < npoints; i++ )
......
...@@ -106,11 +106,11 @@ void cv::cuda::calcNorm(InputArray _src, OutputArray dst, int normType, InputArr ...@@ -106,11 +106,11 @@ void cv::cuda::calcNorm(InputArray _src, OutputArray dst, int normType, InputArr
} }
else if (normType == NORM_L2) else if (normType == NORM_L2)
{ {
internal::normL2(src_single_channel, dst, mask, stream); cv::cuda::internal::normL2(src_single_channel, dst, mask, stream);
} }
else // NORM_INF else // NORM_INF
{ {
internal::findMaxAbs(src_single_channel, dst, mask, stream); cv::cuda::internal::findMaxAbs(src_single_channel, dst, mask, stream);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment