43
#ifndef OPENCV_STITCHING_UTIL_INL_HPP
44
#define OPENCV_STITCHING_UTIL_INL_HPP
47
#include "opencv2/core.hpp"
56B Graph::forEach(B body)
const
58
for
(
int
i = 0; i < numVertices(); ++i)
60
std::list<GraphEdge>::const_iterator edge = edges_[i].begin();
61
for
(; edge != edges_[i].end(); ++edge)
69B Graph::walkBreadthFirst(
int
from, B body)
const
71
std::vector<bool> was(numVertices(),
false);
72
std::queue<int> vertices;
77
while
(!vertices.empty())
79
int
vertex = vertices.front();
82
std::list<GraphEdge>::const_iterator edge = edges_[vertex].begin();
83
for
(; edge != edges_[vertex].end(); ++edge)
89
vertices.push(edge->to);
102
float
normL2(
const
Point3f& a)
104
return
a.x * a.x + a.y * a.y + a.z * a.z;
109
float
normL2(
const
Point3f& a,
const
Point3f& b)
111
return
normL2(a - b);
116
double
normL2sq(
const
Mat &r)
122
static
inline
int
sqr(
int
x) {
return
x * x; }
123
static
inline
float
sqr(
float
x) {
return
x * x; }
124
static
inline
double
sqr(
double
x) {
return
x * x; }
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75