pub fn convert_color_2d_to_depth_2d(
        &self,
        source_point2d: &k4a_float2_t,
        depth_image: &Image,
    ) -> Result<(k4a_float2_t, bool), Error> {
        let mut target_point2d = k4a_float2_t::default();
        let mut valid: i32 = 0;
        Error::from((self.api.k4a_calibration_color_2d_to_depth_2d)(
            &self.calibration,
            source_point2d,
            depth_image.handle,
            &mut target_point2d,
            &mut valid,
        ))
        .to_result((target_point2d, valid != 0))
    }
/// Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera. This function
/// searches along an epipolar line in the depth image to find the corresponding depth pixel.
/// Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used)
Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera. This function
searches along an epipolar line in the depth image to find the corresponding depth pixel.
Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used)
Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera . This function searches along an epipolar line in the depth image to find the corresponding depth pixel . Returns false if the point is invalid in the target coordinate system ( and therefore target_point2d should not be used )
pub fn convert_color_2d_to_depth_2d(
        &self,
        source_point2d: &k4a_float2_t,
        depth_image: &Image,
    ) -> Result<(k4a_float2_t, bool), Error> {
        let mut target_point2d = k4a_float2_t::default();
        let mut valid: i32 = 0;
        Error::from((self.api.k4a_calibration_color_2d_to_depth_2d)(
            &self.calibration,
            source_point2d,
            depth_image.handle,
            &mut target_point2d,
            &mut valid,
        ))
        .to_result((target_point2d, valid != 0))
    }
pub fn convert_color_2d_to_depth_2d ( & self , source_point2d : & k4a_float2_t , depth_image : & Image , ) -> Result < ( k4a_float2_t , bool ) , Error > { let mut target_point2d = k4a_float2_t :: default ( ) ; let mut valid : i32 = 0 ; Error :: from ( ( self . api . k4a_calibration_color_2d_to_depth_2d ) ( & self . calibration , source_point2d , depth_image . handle , & mut target_point2d , & mut valid , ) ) . to_result ( ( target_point2d , valid != 0 ) ) }
Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera.
Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera .
&self
source_point2d
&k4a_float2_t
depth_image
&Image