opencv::cudaarithm

Function rshift

Source
pub fn rshift(
    src: &impl ToInputArray,
    val: Scalar_<i32>,
    dst: &mut impl ToOutputArray,
    stream: &mut impl StreamTrait,
) -> Result<()>
Expand description

Performs pixel by pixel right shift of an image by a constant value.

§Parameters

  • src: Source matrix. Supports 1, 3 and 4 channels images with integers elements.
  • val: Constant values, one per channel.
  • dst: Destination matrix with the same size and type as src .
  • stream: Stream for the asynchronous version.

§C++ default parameters

  • stream: Stream::Null()