Function absdiff

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

Computes per-element absolute difference of two matrices (or of a matrix and scalar).

§Parameters

  • src1: First source matrix or scalar.
  • src2: Second source matrix or scalar.
  • dst: Destination matrix that has the same size and type as the input array(s).
  • stream: Stream for the asynchronous version.

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

§See also

cv::absdiff, absdiffWithScalar

§C++ default parameters

  • stream: Stream::Null()