public float CalculateTargetZ(FrameQueue frame_queue1, FrameQueue frame_queue2, FrameQueue frame_queue3, float target_width_mm, float target_height_mm, ProgressCallback cb)
        {
            object error;
            rs2_update_progress_callback cb2 = (float progress, IntPtr u) =>
            {
                cb((IntPtr)progress);
            };

            return(NativeMethods.rs2_calculate_target_z(Handle, frame_queue1.Handle, frame_queue2.Handle, frame_queue3.Handle, target_width_mm, target_height_mm, cb2, out error));
        }
Beispiel #2
0
        public byte[] RunTareCalibration(float ground_truth_mm, string json, ProgressCallback cb, int timeout_ms)
        {
            object error;
            rs2_update_progress_callback cb2 = (float progress, IntPtr u) =>
            {
                cb((IntPtr)progress);
            };
            IntPtr rawDataBuffer = NativeMethods.rs2_run_tare_calibration(Handle, ground_truth_mm, json, json.Length, cb2, IntPtr.Zero, timeout_ms, out error);

            return(GetByteArrayFromRawDataObject(rawDataBuffer));
        }
Beispiel #3
0
        public byte[] RunOnChipCalibration(string json, out float health, ProgressCallback cb, int timeout_ms)
        {
            object error;
            rs2_update_progress_callback cb2 = (float progress, IntPtr u) =>
            {
                cb((IntPtr)progress);
            };
            IntPtr rawDataBuffer = NativeMethods.rs2_run_on_chip_calibration(Handle, json, json.Length, out health, cb2, IntPtr.Zero, timeout_ms, out error);

            return(GetByteArrayFromRawDataObject(rawDataBuffer));
        }
        public byte[] RunUVMapCalibration(FrameQueue left, FrameQueue color, FrameQueue depth, int px_py_only, out float ratio, out float angle, ProgressCallback cb)
        {
            object error;
            rs2_update_progress_callback cb2 = (float progress, IntPtr u) =>
            {
                cb((IntPtr)progress);
            };
            IntPtr rawDataBuffer = NativeMethods.rs2_run_uv_map_calibration(Handle, left.Handle, color.Handle, depth.Handle,
                                                                            px_py_only, out ratio, out angle, cb2, out error);

            return(GetByteArrayFromRawDataObject(rawDataBuffer));
        }
        public byte[] RunFocalLengthCalibration(FrameQueue left, FrameQueue right, float target_width_mm, float target_height_mm, int adjust_both_sides, out float ratio, out float angle, ProgressCallback cb)
        {
            object error;
            rs2_update_progress_callback cb2 = (float progress, IntPtr u) =>
            {
                cb((IntPtr)progress);
            };
            IntPtr rawDataBuffer = NativeMethods.rs2_run_focal_length_calibration(Handle, left.Handle, right.Handle,
                                                                                  target_width_mm, target_height_mm, adjust_both_sides, out ratio, out angle, cb2, out error);

            return(GetByteArrayFromRawDataObject(rawDataBuffer));
        }
Beispiel #6
0
 internal UpdateDevice(IntPtr dev)
     : base(dev)
 {
     onUpdateProgressCallback = new rs2_update_progress_callback(OnUpdateProgressInternal);
 }
 internal UpdatableDevice(IntPtr dev)
     : base(dev)
 {
     onFlashBackupProgressCallback = new rs2_update_progress_callback(OnFlashBackupProgressInternal);
 }