| 47 | } |
| 48 | |
| 49 | static const Shape LandmarksAsShape( // return a Shape |
| 50 | const float* landmarks) // in |
| 51 | { |
| 52 | Shape shape(stasm_NLANDMARKS, 2); |
| 53 | for (int i = 0; i < stasm_NLANDMARKS; i++) |
| 54 | { |
| 55 | shape(i, IX) = landmarks[i*2]; |
| 56 | shape(i, IY) = landmarks[i*2+1]; |
| 57 | } |
| 58 | return shape; |
| 59 | } |
| 60 | |
| 61 | } // namespace stasm |
| 62 |
no outgoing calls
no test coverage detected