pub fn compare(src1: &dyn core::ToInputArray, src2: &dyn core::ToInputArray, dst: &mut dyn core::ToOutputArray, cmpop: i32) -> Result<()> {
	input_array_arg!(src1);
	input_array_arg!(src2);
	output_array_arg!(dst);
	unsafe { sys::cv_compare_const__InputArrayX_const__InputArrayX_const__OutputArrayX_int(src1.as_raw__InputArray(), src2.as_raw__InputArray(), dst.as_raw__OutputArray(), cmpop) }.into_result()
}
/// Performs the per-element comparison of two arrays or an array and scalar value.
/// 
/// The function compares:
/// *   Elements of two arrays when src1 and src2 have the same size:
///    ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bdst%7D%20%28I%29%20%3D%20%20%5Ctexttt%7Bsrc1%7D%20%28I%29%20%20%5C%2C%5Ctexttt%7Bcmpop%7D%5C%2C%20%5Ctexttt%7Bsrc2%7D%20%28I%29)
/// *   Elements of src1 with a scalar src2 when src2 is constructed from
///    Scalar or has a single element:
///    ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bdst%7D%20%28I%29%20%3D%20%20%5Ctexttt%7Bsrc1%7D%28I%29%20%5C%2C%5Ctexttt%7Bcmpop%7D%5C%2C%20%20%5Ctexttt%7Bsrc2%7D)
/// *   src1 with elements of src2 when src1 is constructed from Scalar or
///    has a single element:
///    ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bdst%7D%20%28I%29%20%3D%20%20%5Ctexttt%7Bsrc1%7D%20%20%5C%2C%5Ctexttt%7Bcmpop%7D%5C%2C%20%5Ctexttt%7Bsrc2%7D%20%28I%29)
/// When the comparison result is true, the corresponding element of output
/// array is set to 255. The comparison operations can be replaced with the
/// equivalent matrix expressions:
/// ```ignore
///    Mat dst1 = src1 >= src2;
///    Mat dst2 = src1 < 8;
///    ...
/// ```
/// 
/// ## Parameters
/// * src1: first input array or a scalar; when it is an array, it must have a single channel.
/// * src2: second input array or a scalar; when it is an array, it must have a single channel.
/// * dst: output array of type ref CV_8U that has the same size and the same number of channels as
///    the input arrays.
/// * cmpop: a flag, that specifies correspondence between the arrays (cv::CmpTypes)
/// ## See also
/// checkRange, min, max, threshold
Performs the per-element comparison of two arrays or an array and scalar value.
The function compares:
Elements of two arrays when src1 and src2 have the same size:
[block formula]
Elements of src1 with a scalar src2 when src2 is constructed from
Scalar or has a single element:
[block formula]
src1 with elements of src2 when src1 is constructed from Scalar or
has a single element:
[block formula]
When the comparison result is true, the corresponding element of output
array is set to 255.
Performs the per - element comparison of two arrays or an array and scalar value . The function compares : Elements of two arrays when src1 and src2 have the same size : [ block formula ] Elements of src1 with a scalar src2 when src2 is constructed from Scalar or has a single element : [ block formula ] src1 with elements of src2 when src1 is constructed from Scalar or has a single element : [ block formula ] When the comparison result is true the corresponding element of output array is set to 255 .
pub fn compare(src1: &dyn core::ToInputArray, src2: &dyn core::ToInputArray, dst: &mut dyn core::ToOutputArray, cmpop: i32) -> Result<()> {
	input_array_arg!(src1);
	input_array_arg!(src2);
	output_array_arg!(dst);
	unsafe { sys::cv_compare_const__InputArrayX_const__InputArrayX_const__OutputArrayX_int(src1.as_raw__InputArray(), src2.as_raw__InputArray(), dst.as_raw__OutputArray(), cmpop) }.into_result()
}
pub fn compare ( src1 : & dyn core :: ToInputArray , src2 : & dyn core :: ToInputArray , dst : & mut dyn core :: ToOutputArray , cmpop : i32 ) -> Result < ( ) > { input_array_arg ! ( src1 ) ; input_array_arg ! ( src2 ) ; output_array_arg ! ( dst ) ; unsafe { sys :: cv_compare_const__InputArrayX_const__InputArrayX_const__OutputArrayX_int ( src1 . as_raw__InputArray ( ) , src2 . as_raw__InputArray ( ) , dst . as_raw__OutputArray ( ) , cmpop ) } . into_result ( ) }
Performs the per-element comparison of two arrays or an array and scalar value.
Performs the per - element comparison of two arrays or an array and scalar value .
src1
&dyn core::ToInputArray
src2
&dyn core::ToInputArray
dst
&mut dyn core::ToOutputArray
cmpop
i32
see also
checkRange, min, max, threshold
checkRange min max threshold