opencv::cudaarithm

Function bitwise_xor_def

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

Performs a per-element bitwise exclusive or operation of two matrices (or of 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.
  • mask: Optional operation mask, 8-bit single channel array, that specifies elements of the destination array to be changed. The mask can be used only with single channel images.
  • stream: Stream for the asynchronous version.

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

§See also

cv::bitwise_xor, bitwise_xor_with_scalar

§Note

This alternative version of bitwise_xor function uses the following default values for its arguments:

  • mask: noArray()
  • stream: Stream::Null()