Function bitwise_not

Source
pub fn bitwise_not(
    src: &impl ToInputArray,
    dst: &mut impl ToOutputArray,
    mask: &impl ToInputArray,
) -> Result<()>
Expand description

Inverts every bit of an array.

The function cv::bitwise_not calculates per-element bit-wise inversion of the input array: block formula In case of a floating-point input array, its machine-specific bit representation (usually IEEE754-compliant) is used for the operation. In case of multi-channel arrays, each channel is processed independently.

§Parameters

  • src: input array.
  • dst: output array 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 output array to be changed.

§C++ default parameters

  • mask: noArray()