public static void PrintLandmarks(smFaceLandmark_cli[] landmarks) { for (int i = 0; i < landmarks.Length; ++i) { Console.WriteLine(landmarks[i].mkstring()); } }
public void OutputRawDataPairs(smFaceLandmark_cli[] landmarks) { Pair<string, double>[] valpairs = new Pair<string, double>[landmarks.Length * 3]; for (int i = 0; i < landmarks.Length; ++i) { valpairs[i*3] = new Pair<string, double>("landmark_"+landmarks[i].id+"_fc_x", landmarks[i].fc.x); valpairs[i*3 + 1] = new Pair<string, double>("landmark_"+landmarks[i].id+"_fc_y", landmarks[i].fc.y); valpairs[i*3 + 2] = new Pair<string, double>("landmark_"+landmarks[i].id+"_fc_z", landmarks[i].fc.z); } dataoutput(valpairs); }