Function libredr::camera::perspective::perspective_ray

source ·
pub fn perspective_ray(
    resolution: &[usize; 2],
    intrinsic: MatrixView<'_, f32, Const<3>, Const<3>, Dyn, Dyn>,
    extrinsic: MatrixView<'_, f32, Const<4>, Const<4>, Dyn, Dyn>,
) -> Result<Array3<f32>>
Expand description

Construct input ray for perspective camera model

§Arguments

  • resolution: tuple of 2 usize [width, height]
  • intrinsic: 3 * 3 matrix
  • extrinsic: 4 * 4 matrix

§Return

  • 18 * height * width Camera model use x-right, y-down, z-forward axis scheme