/// 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: &Float2,
        source_depth: f32,
        source_camera: CalibrationType,
        target_camera: CalibrationType,
    ) -> Result<(Float3, bool), Error> {
        let mut target_point3d = Float3::default();
        let mut valid: i32 = 0;
        Error::from_k4a_result_t(unsafe {
            (self.api.funcs.k4a_calibration_2d_to_3d)(
                &self.calibration,
                &source_point2d.value,
                source_depth,
                source_camera.into(),
                target_camera.into(),
                &mut target_point3d.value,
                &mut valid,
            )
        })
        .to_result((target_point3d, valid != 0))
    }
pub fn convert_2d_to_3d ( & self , source_point2d : & Float2 , source_depth : f32 , source_camera : CalibrationType , target_camera : CalibrationType , ) -> Result < ( Float3 , bool ) , Error > { let mut target_point3d = Float3 :: default ( ) ; let mut valid : i32 = 0 ; Error :: from_k4a_result_t ( unsafe { ( self . api . funcs . k4a_calibration_2d_to_3d ) ( & self . calibration , & source_point2d . value , source_depth , source_camera . into ( ) , target_camera . into ( ) , & mut target_point3d . value , & 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
source_point2d
&Float2
source_depth
f32
source_camera
CalibrationType
target_camera
CalibrationType