Exemple #1
0
        public static float Test1_Translation(ref PointCloud mypointCloudTarget, ref PointCloud mypointCloudSource, ref PointCloud mypointCloudResult)
        {
            mypointCloudTarget = PointCloud.CreateSomePoints();
            mypointCloudSource = PointCloud.CloneAll(mypointCloudTarget);
            PointCloud.Translate(mypointCloudSource, 10, 3, 8);


            mypointCloudResult = IterativeClosestPointTransform.Instance.PerformICP(mypointCloudSource, mypointCloudTarget);
            return(IterativeClosestPointTransform.Instance.MeanDistance);
        }
Exemple #2
0
        public void SomePoints()
        {
            this.pointCloudTarget = PointCloud.CreateSomePoints();
            this.pointCloudSource = pointCloudTarget.Clone();
            PointCloud.Translate(pointCloudSource, 1, 2, 0);


            this.pointCloudResult = IterativeClosestPointTransform.Instance.PerformICP(pointCloudSource, this.pointCloudTarget);
            float f = IterativeClosestPointTransform.Instance.MeanDistance;

            Assert.IsTrue(f < this.threshold);
        }