public void ICP_Face_Old() { ICPTestForm fOTK = new ICPTestForm(); fOTK.IPCOnTwoPointClouds(); fOTK.ShowDialog(); }
protected void ShowResultsInWindow(bool changeColor) { ICPTestForm fOTK = new ICPTestForm(); fOTK.ShowICPResults(verticesTarget, verticesSource, verticesResult, changeColor); fOTK.ShowDialog(); }
public void Translation_Horn_Old() { Reset(); IterativeClosestPointTransform.ICPVersion = ICP_VersionUsed.Horn; meanDistance = ICPTestData.Test1_Translation(ref verticesTarget, ref verticesSource, ref verticesResult); Assert.IsTrue(ICPTestData.CheckResult(verticesTarget, verticesResult, 1e-10)); ICPTestForm fOTK = new ICPTestForm(); fOTK.ShowICPResults(verticesTarget, verticesSource, verticesResult, true); fOTK.ShowDialog(); }
public void ICP_Show_KnownTransformation() { ICPTestForm fOTK = new ICPTestForm(); fOTK.OpenGLControl.RemoveAllModels(); string fileNameLong = path + "\\KinectFace1.obj"; fOTK.OpenGLControl.LoadModelFromFile(fileNameLong, true); fileNameLong = path + "\\transformed.obj"; fOTK.OpenGLControl.LoadModelFromFile(fileNameLong, true); fOTK.ICP_OnCurrentModels(); fOTK.ShowDialog(); }
protected void ShowResultsInWindow_CubeLines(bool changeColor) { //color code: //Target is green //source : white //result : red //so - if there is nothing red on the OpenTK control, the result overlaps the target Vertices.SetColorOfListTo(verticesTarget, 0.0f, 1f, 0f, 1f); Vertices.SetColorOfListTo(verticesSource, 1f, 1f, 1f, 1f); if (verticesResult != null) { Vertices.SetColorOfListTo(verticesResult, 1f, 0f, 0f, 1f); CreateLinesForCube(verticesResult); } CreateLinesForCube(verticesTarget); CreateLinesForCube(verticesSource); ICPTestForm fOTK = new ICPTestForm(); fOTK.ShowICPResults_WithLines(verticesTarget, verticesSource, verticesResult, this.linesFrom, this.linesTo, changeColor); fOTK.ShowDialog(); }