divide_with_scalar_def

Function divide_with_scalar_def 

Source
pub fn divide_with_scalar_def(
    src1: &impl ToInputArray,
    src2: Scalar,
    dst: &mut impl ToOutputArray,
) -> Result<()>
Expand description

Computes a matrix-scalar division.

§Parameters

  • src1: First source matrix.
  • src2: Second source scalar.
  • dst: Destination matrix that has the same size and number of channels as the input array. The depth is defined by dtype or @p src1 depth.
  • scale: Optional scale factor.
  • dtype: Optional depth of the output array.
  • stream: Stream for the asynchronous version.

This function, in contrast to divide, uses a round-down rounding mode.

§See also

divide

§Note

This alternative version of divide_with_scalar function uses the following default values for its arguments:

  • scale: 1
  • dtype: -1
  • stream: Stream::Null()