/// Get the camera calibration for a device from a raw calibration blob.
Get the camera calibration for a device from a raw calibration blob.
Get the camera calibration for a device from a raw calibration blob .
pub fn calibration_get_from_raw(
        &self,
        raw_calibration: &Vec<u8>,
        target_depth_mode: DepthMode,
        target_color_resolution: ColorResolution,
    ) -> Result<Calibration, Error> {
        let mut calibration = k4a_calibration_t::default();
        Error::from_k4a_result_t(unsafe {
            (self.api().funcs.k4a_calibration_get_from_raw)(
                raw_calibration.as_ptr() as *mut i8,
                raw_calibration.len(),
                target_depth_mode.into(),
                target_color_resolution.into(),
                &mut calibration,
            )
        })
        .to_result_fn(|| Calibration::from_handle(&self.api, calibration))
    }
pub fn calibration_get_from_raw ( & self , raw_calibration : & Vec < u8 > , target_depth_mode : DepthMode , target_color_resolution : ColorResolution , ) -> Result < Calibration , Error > { let mut calibration = k4a_calibration_t :: default ( ) ; Error :: from_k4a_result_t ( unsafe { ( self . api ( ) . funcs . k4a_calibration_get_from_raw ) ( raw_calibration . as_ptr ( ) as * mut i8 , raw_calibration . len ( ) , target_depth_mode . into ( ) , target_color_resolution . into ( ) , & mut calibration , ) } ) . to_result_fn ( | | Calibration :: from_handle ( & self . api , calibration ) ) }
Get the camera calibration for a device from a raw calibration blob.
Get the camera calibration for a device from a raw calibration blob .
&self
raw_calibration
&Vec<u8>
target_depth_mode
DepthMode
target_color_resolution
ColorResolution