[−][src]Function opencv::core::bitwise_xor
pub fn bitwise_xor(
src1: &dyn ToInputArray,
src2: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
mask: &dyn ToInputArray
) -> Result<()>
Calculates the per-element bit-wise "exclusive or" operation on two arrays or an array and a scalar.
The function cv::bitwise_xor calculates the per-element bit-wise logical "exclusive-or"
operation for:
Two arrays when src1 and src2 have the same size:
An array and a scalar when src2 is constructed from Scalar or has
the same number of elements as src1.channels()
:
A scalar and an array when src1 is constructed from Scalar or has
the same number of elements as src2.channels()
:
In case of floating-point arrays, their machine-specific bit
representations (usually IEEE754-compliant) are used for the operation.
In case of multi-channel arrays, each channel is processed
independently. In the 2nd and 3rd cases above, the scalar is first
converted to the array type.
Parameters
- src1: first input array or a scalar.
- src2: second input array or a scalar.
- dst: output array that has the same size and type as the input arrays.
- mask: optional operation mask, 8-bit single channel array, that specifies elements of the output array to be changed.
C++ default parameters
- mask: noArray()