コード例 #1
0
        /// <summary>
        /// LocalCoordinateMapperをdumpするやつ
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DumpCalibButton_Click(object sender, RoutedEventArgs e)
        {
            LocalCoordinateMapper lcm = new LocalCoordinateMapper(this.coordinateMapper, this.depthWidth, this.depthHeight);
            string path = Path.Combine(Path.GetDirectoryName(this.recordPath), "coordmap.dump");

            lcm.dump(path);

            CameraIntrinsics cameraIntrinsics = this.coordinateMapper.GetDepthCameraIntrinsics();
            string           path2            = Path.Combine(Path.GetDirectoryName(this.recordPath), "CameraInfo.dump");

            Utility.SaveToBinary(cameraIntrinsics, path2);
        }
コード例 #2
0
        /// <summary>
        /// LocalCoordinateMapperをdumpするやつ
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DumpCalibButton_Click(object sender, RoutedEventArgs e)
        {
            LocalCoordinateMapper lcm = new LocalCoordinateMapper(this.coordinateMapper, this.depthWidth, this.depthHeight);
            string path = Path.Combine(Path.GetDirectoryName(this.recordPath), "coordmap.dump");
            lcm.dump(path);

            CameraIntrinsics cameraIntrinsics = this.coordinateMapper.GetDepthCameraIntrinsics();
            string path2 = Path.Combine(Path.GetDirectoryName(this.recordPath), "CameraInfo.dump");
            Utility.SaveToBinary(cameraIntrinsics, path2);
        }