public void Save(Raw rawData, string path) { TFL_PointXYZ[] pcdFullBuf = new TFL_PointXYZ[307200]; TFL_RESULT result = TFL_Utilities.Depth2PCD(rawData.rawBuf, pcdFullBuf); result = TFL_Utilities.SavePLY(pcdFullBuf, 307200, path); }
public void Run(PeopleDetector peoDtc, Sheet sheet, int sequenceIdx) { outputGetGroundCloud = new List <TFL_PointXYZ>(); result = peoDtc.GetGroundCloud(outputGetGroundCloud); sheet.writeStr(sequenceIdx, 11, result.ToString()); // Result is wrote to xls PLYfileNamePosfix = PLYfileNamePosfix + 1; PLYfileName = Constants.OUTPUT_GET_GROUND_CLOUD_DIR + "outputGround_" + PLYfileNamePosfix.ToString() + ".ply"; TFL_Utilities.SavePLY(outputGetGroundCloud.ToArray(), (ulong)outputGetGroundCloud.Count(), PLYfileName); // output groud is saved as PLY sheet.writeStr(sequenceIdx, 10, "outputGround_" + PLYfileNamePosfix.ToString() + ".ply"); // PLY filename is wrote to xls }
public void Run(PeopleDetector peoDtc, Sheet sheet, int sequenceIdx) { outputGetPeopleData = new List <TFL_Human>(); result = peoDtc.GetPeopleData(outputGetPeopleData); sheet.writeStr(sequenceIdx, 13, result.ToString()); // Result is wrote to xls PLYfileNamePosfix = PLYfileNamePosfix + 1; string xlsStr = ""; int numPeo = outputGetPeopleData.Count(); for (int i = 0; i < numPeo; i++) { PLYfileName = PLYfileNamePosfix.ToString() + "_person" + i.ToString() + ".ply"; TFL_Utilities.SavePLY(outputGetPeopleData[i].peoplePointCloud.ToArray(), (ulong)outputGetPeopleData[i].peoplePointCloud.Count(), Constants.OUTPUT_GET_PEOPLE_DATA_DIR + PLYfileName); // output people is saved as PLY xlsStr = xlsStr + PLYfileName + ";"; } sheet.writeStr(sequenceIdx, 12, xlsStr); // PLY filename is wrote to xls }