Function divide

Source
pub fn divide(
    src1: &impl ToInputArray,
    src2: &impl ToInputArray,
    dst: &mut impl ToOutputArray,
    scale: f64,
    dtype: i32,
    stream: &mut impl StreamTrait,
) -> Result<()>
Expand description

Computes a matrix-matrix or matrix-scalar division.

§Parameters

  • src1: First source matrix or scalar.
  • src2: Second source matrix or scalar.
  • dst: Destination matrix that has the same size and number of channels as the input array(s). 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.

@warning In python both @p src1 and @p src2 have to be matrices, see [divideWithScalar] for scalar overload.

§See also

cv::divide, divideWithScalar

§C++ default parameters

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