[][src]Function opencv::cudastereo::draw_color_disp

pub fn draw_color_disp(
    src_disp: &dyn ToInputArray,
    dst_disp: &mut dyn ToOutputArray,
    ndisp: i32,
    stream: &mut Stream
) -> Result<()>

Colors a disparity image.

Parameters

  • src_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.
  • dst_disp: Output disparity image. It has the same size as src_disp. The type is CV_8UC4 in BGRA format (alpha = 255).
  • ndisp: Number of disparities.
  • stream: Stream for the asynchronous version.

This function draws a colored disparity map by converting disparity values from [0..ndisp) interval first to HSV color space (where different disparity values correspond to different hues) and then converting the pixels to RGB for visualization.

C++ default parameters

  • stream: Stream::Null()