/// Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point of the target coordinate system.
/// Returns false if the point is invalid in the target coordinate system (and therefore target_point3d should not be used)
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point of the target coordinate system.
Returns false if the point is invalid in the target coordinate system (and therefore target_point3d should not be used)
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point of the target coordinate system . Returns false if the point is invalid in the target coordinate system ( and therefore target_point3d should not be used )
pub fn convert_2d_to_3d(
        &self,
        source_point2d: &k4a_float2_t,
        source_depth: f32,
        source_camera: k4a_calibration_type_t,
        target_camera: k4a_calibration_type_t,
    ) -> Result<(k4a_float3_t, bool), Error> {
        let mut target_point3d = k4a_float3_t::default();
        let mut valid: i32 = 0;
        Error::from((self.api.k4a_calibration_2d_to_3d)(
            &self.calibration,
            source_point2d,
            source_depth,
            source_camera,
            target_camera,
            &mut target_point3d,
            &mut valid,
        ))
        .to_result((target_point3d, valid != 0))
    }
pub fn convert_2d_to_3d ( & self , source_point2d : & k4a_float2_t , source_depth : f32 , source_camera : k4a_calibration_type_t , target_camera : k4a_calibration_type_t , ) -> Result < ( k4a_float3_t , bool ) , Error > { let mut target_point3d = k4a_float3_t :: default ( ) ; let mut valid : i32 = 0 ; Error :: from ( ( self . api . k4a_calibration_2d_to_3d ) ( & self . calibration , source_point2d , source_depth , source_camera , target_camera , & mut target_point3d , & mut valid , ) ) . to_result ( ( target_point3d , valid != 0 ) ) }
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point of the target coordinate system.
Transform a 2d pixel coordinate with an associated depth value of the source camera into a 3d point of the target coordinate system .
&self
<not_specific>
source_point2d
&k4a_float2_t
<not_specific>
source_depth
f32
<not_specific>
source_camera
k4a_calibration_type_t
<not_specific>
target_camera
k4a_calibration_type_t
<not_specific>