Skip to main content

disparity_to_depth

Function disparity_to_depth 

Source
pub fn disparity_to_depth(
    disparity: ImageView<'_, f32, 1>,
    focal_length: f64,
    baseline: f64,
) -> VisionResult<Image<f32, 1>>
Expand description

Converts horizontal disparity to metric depth with Z = f * B / d.