pub fn compare_def(
src1: &impl ToInputArray,
src2: &impl ToInputArray,
dst: &mut impl ToOutputArray,
cmpop: i32,
) -> 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.
@warning In python both @p src1 and @p src2 have to be matrices, see [compareWithScalar] for scalar overload.
§See also
cv::compare, compareWithScalar
§Note
This alternative version of compare function uses the following default values for its arguments:
- stream: Stream::Null()