| 304 | } |
| 305 | |
| 306 | void stasm_convert_shape( // convert stasm_NLANDMARKS points to given number of points |
| 307 | float* landmarks, // io: return all points zero if can't do conversion |
| 308 | int nlandmarks) // in: see ConvertShape |
| 309 | { |
| 310 | Shape newshape = ConvertShape(LandmarksAsShape(landmarks), nlandmarks); |
| 311 | if (newshape.rows) |
| 312 | ShapeToLandmarks(landmarks, newshape); |
| 313 | else // cannot convert, set all points to 0,0 |
| 314 | for (int i = 0; i < stasm_NLANDMARKS; i++) |
| 315 | landmarks[i * 2] = landmarks[i * 2 + 1] = 0; |
| 316 | } |
| 317 | |
| 318 | void stasm_printf( // print to stdout and to the stasm.log file if it is open |
| 319 | const char* format, // args like printf |
nothing calls this directly
no test coverage detected