43 #ifndef __OPENCV_STITCHING_UTIL_INL_HPP__
44 #define __OPENCV_STITCHING_UTIL_INL_HPP__
58 std::list<GraphEdge>::const_iterator
edge = edges_[i].begin();
59 for (; edge != edges_[i].end(); ++
edge)
70 std::queue<int> vertices;
75 while (!vertices.empty())
77 int vertex = vertices.front();
80 std::list<GraphEdge>::const_iterator
edge = edges_[
vertex].begin();
87 vertices.push(edge->to);
102 return a.
x * a.
x + a.
y * a.
y + a.
z * a.
z;
109 return normL2(a - b);
114 double normL2sq(
const Mat &
r)
120 static inline int sqr(
int x) {
return x *
x; }
121 static inline float sqr(
float x) {
return x *
x; }
122 static inline double sqr(
double x) {
return x *
x; }
127 #endif // __OPENCV_STITCHING_UTIL_INL_HPP__
GLdouble GLdouble GLdouble r
B walkBreadthFirst(int from, B body) const
Definition: util_inl.hpp:67
_Tp y
Definition: core.hpp:805
_Tp z
Definition: core.hpp:805
CV_EXPORTS void sqr(const GpuMat &src, GpuMat &dst, Stream &stream=Stream::Null())
B forEach(B body) const
Definition: util_inl.hpp:54
const CvPoint2D32f vertex[4]
Definition: legacy.hpp:1070
CvPoint2D32f CvSubdiv2DEdge * edge
Definition: legacy.hpp:2954
template 3D point class.
Definition: core.hpp:777
int numVertices() const
Definition: util.hpp:134
GLenum GLint x
Definition: core_c.h:632
_Tp x
Definition: core.hpp:805
GLboolean GLboolean GLboolean b
Definition: legacy.hpp:633
GLboolean GLboolean GLboolean GLboolean a
Definition: legacy.hpp:633
int x
Definition: highgui_c.h:186
const CvMat * B
Definition: calib3d.hpp:161