| 10 | namespace stasm |
| 11 | { |
| 12 | static 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 | |
| 20 | static const VEC Bisector( // return normalized bisector of three ordered points |
| 21 | const VEC& prev, // in: x,y coords of previous point (1x2 matrix) |