[−][src]Function opencv::cudastereo::reproject_image_to_3d
pub fn reproject_image_to_3d(
disp: &dyn ToInputArray,
xyzw: &mut dyn ToOutputArray,
q: &dyn ToInputArray,
dst_cn: i32,
stream: &mut Stream
) -> Result<()>
Reprojects a disparity image to 3D space.
Parameters
- disp: Input single-channel 8-bit unsigned, 16-bit signed, 32-bit signed or 32-bit floating-point disparity image. If 16-bit signed format is used, the values are assumed to have no fractional bits.
- xyzw: Output 3- or 4-channel floating-point image of the same size as disp . Each element of xyzw(x,y) contains 3D coordinates (x,y,z) or (x,y,z,1) of the point (x,y) , computed from the disparity map.
- Q: perspective transformation matrix that can be obtained via stereoRectify .
- dst_cn: The number of channels for output image. Can be 3 or 4.
- stream: Stream for the asynchronous version.
See also
reprojectImageTo3D
C++ default parameters
- dst_cn: 4
- stream: Stream::Null()