Function bitwise_and_with_scalar_def

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

Performs a per-element bitwise conjunction of a matrix and a scalar.

§Parameters

  • src1: First source matrix.
  • src2: Second source 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.

§See also

bitwise_and

§Note

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

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