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

Function Shape77As68

jni/stasm/convshape.cpp:190–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static Shape Shape77As68( // return an approximated XM2VTS 68 point shape
191 const Shape& shape) // in: Stasm 77 point shape
192{
193 CV_Assert(shape.rows == 77);
194
195 Shape newshape(68, 2);
196
197 CopyPoint(newshape, shape, 0, 0);
198 InterPoint(newshape, shape, 1, .6667, 1, 2);
199 InterPoint(newshape, shape, 2, .5, 2, 3);
200 CopyPoint(newshape, shape, 3, 3);
201 InterPoint(newshape, shape, 4, .3333, 3, 4);
202 InterPoint(newshape, shape, 5, .6667, 4, 5);
203 CopyPoint(newshape, shape, 6, 5);
204 CopyPoint(newshape, shape, 7, 6);
205 CopyPoint(newshape, shape, 8, 7);
206 InterPoint(newshape, shape, 9, .3333, 7, 8);
207 InterPoint(newshape, shape, 10, .6667, 8, 9);
208 CopyPoint(newshape, shape, 11, 9);
209 InterPoint(newshape, shape, 12, .5, 9, 10);
210 InterPoint(newshape, shape, 13, .3333, 10, 11);
211 CopyPoint(newshape, shape, 14, 12);
212 CopyPoint(newshape, shape, 15, 25);
213 CopyPoint(newshape, shape, 16, 24);
214 CopyPoint(newshape, shape, 17, 23);
215 CopyPoint(newshape, shape, 18, 22);
216 CopyPoint(newshape, shape, 19, 27);
217 CopyPoint(newshape, shape, 20, 26);
218 CopyPoint(newshape, shape, 21, 18);
219 CopyPoint(newshape, shape, 22, 17);
220 CopyPoint(newshape, shape, 23, 16);
221 CopyPoint(newshape, shape, 24, 21);
222 CopyPoint(newshape, shape, 25, 20);
223 CopyPoint(newshape, shape, 26, 19);
224 CopyPoint(newshape, shape, 27, 34);
225 CopyPoint(newshape, shape, 28, 32);
226 CopyPoint(newshape, shape, 29, 30);
227 CopyPoint(newshape, shape, 30, 36);
228 CopyPoint(newshape, shape, 31, 38);
229 CopyPoint(newshape, shape, 32, 44);
230 CopyPoint(newshape, shape, 33, 42);
231 CopyPoint(newshape, shape, 34, 40);
232 CopyPoint(newshape, shape, 35, 46);
233 CopyPoint(newshape, shape, 36, 39);
234 InterPoint(newshape, shape, 37, .6667, 30, 40);
235 newshape(37, IX) = shape(50, IX);
236 CopyPoint(newshape, shape, 38, 50);
237 CopyPoint(newshape, shape, 39, 58);
238 CopyPoint(newshape, shape, 40, 57);
239 CopyPoint(newshape, shape, 41, 56);
240 CopyPoint(newshape, shape, 42, 55);
241 CopyPoint(newshape, shape, 43, 54);
242 CopyPoint(newshape, shape, 44, 48);
243 InterPoint(newshape, shape, 45, .3333, 30, 40);
244 newshape(45, IX) = shape(48, IX);
245 CopyPoint(newshape, shape, 46, 51);
246 CopyPoint(newshape, shape, 47, 53);
247 CopyPoint(newshape, shape, 48, 59);

Callers 1

ConvertShapeFunction · 0.85

Calls 3

InterPointFunction · 0.85
EyeMouthDistFunction · 0.85
CopyPointFunction · 0.70

Tested by

no test coverage detected