Function opencv::cudaarithm::compare[][src]

pub fn compare(
    src1: &dyn ToInputArray,
    src2: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    cmpop: i32,
    stream: &mut Stream
) -> Result<()>
Expand description

Compares elements 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 as the input array(s) and type CV_8U.
  • cmpop: Flag specifying the relation between the elements to be checked:
  • CMP_EQ: a(.) == b(.)
  • CMP_GT: a(.) > b(.)
  • CMP_GE: a(.) >= b(.)
  • CMP_LT: a(.) < b(.)
  • CMP_LE: a(.) <= b(.)
  • CMP_NE: a(.) != b(.)
  • stream: Stream for the asynchronous version.

See also

compare

C++ default parameters

  • stream: Stream::Null()