Exemplo n.º 1
0
        // Methods

        /// <summary>
        /// Resets the properties.
        /// </summary>
        public virtual void ResetCalibration()
        {
            AllMarkerCorners = new Std.VectorVectorVectorPoint2f[ArucoCamera.CameraNumber];
            AllMarkerIds     = new Std.VectorVectorInt[ArucoCamera.CameraNumber];
            Images           = new Std.VectorMat[ArucoCamera.CameraNumber];
            for (int cameraId = 0; cameraId < ArucoCamera.CameraNumber; cameraId++)
            {
                AllMarkerCorners[cameraId] = new Std.VectorVectorVectorPoint2f();
                AllMarkerIds[cameraId]     = new Std.VectorVectorInt();
                Images[cameraId]           = new Std.VectorMat();
            }

            Rvecs         = new Std.VectorVec3d[ArucoCamera.CameraNumber];
            Tvecs         = new Std.VectorVec3d[ArucoCamera.CameraNumber];
            MarkerCorners = new Std.VectorVectorPoint2f[ArucoCamera.CameraNumber];
            MarkerIds     = new Std.VectorInt[ArucoCamera.CameraNumber];

            IsCalibrated = false;
        }
Exemplo n.º 2
0
            // Methods

            /// <summary>
            /// Reset the properties.
            /// </summary>
            public void ResetCalibration()
            {
                MarkerCorners = new Std.VectorVectorVectorPoint2f[ArucoCamera.CameraNumber];
                MarkerIds     = new Std.VectorVectorInt[ArucoCamera.CameraNumber];
                CameraImages  = new Std.VectorMat[ArucoCamera.CameraNumber];
                for (int cameraId = 0; cameraId < ArucoCamera.CameraNumber; cameraId++)
                {
                    MarkerCorners[cameraId] = new Std.VectorVectorVectorPoint2f();
                    MarkerIds[cameraId]     = new Std.VectorVectorInt();
                    CameraImages[cameraId]  = new Std.VectorMat();
                }

                Rvecs = new Std.VectorVec3d[ArucoCamera.CameraNumber];
                Tvecs = new Std.VectorVec3d[ArucoCamera.CameraNumber];
                MarkerCornersCurrentImage = new Std.VectorVectorPoint2f[ArucoCamera.CameraNumber];
                MarkerIdsCurrentImage     = new Std.VectorInt[ArucoCamera.CameraNumber];

                CameraParameters = null;
                IsCalibrated     = false;
            }