MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / NormalizeMat

Function NormalizeMat

jni/stasm/classicdesc.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace stasm
11{
12static void NormalizeMat(
13 MAT& mat) // io: normalized so L2 length is 1
14{
15 double norm = cv::norm(mat); // L2 norm
16 if (!IsZero(norm))
17 mat /= norm;
18}
19
20static const VEC Bisector( // return normalized bisector of three ordered points
21 const VEC& prev, // in: x,y coords of previous point (1x2 matrix)

Callers 1

BisectorFunction · 0.85

Calls 1

IsZeroFunction · 0.85

Tested by

no test coverage detected