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

Function LandmarksAsShape

jni/stasm/stasm_lib.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static 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

Callers 2

stasm_search_pinnedFunction · 0.85
stasm_convert_shapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected