Warm tip: This article is reproduced from serverfault.com, please click

python-bitwise_and运算符在openCV中到底做什么?

(python - What does bitwise_and operator exactly do in openCV?)

发布于 2017-06-02 16:31:55

我不完全了解在openCV中使用“ bitwise_and”运算符的作用。我也想知道它的参数。

Questioner
Harit Ahuja
Viewed
11
Stavros Avramidis 2017-06-03 00:39:28

按位与

计算两个数组或一个数组和一个标量的按元素按位求和。

参数:

  • src1 –第一个输入数组或标量。
  • src2 –第二个输入数组或标量。
  • src –单输入数组。
  • 值–标量值。
  • dst –具有与输入数组相同的大小和类型的输出数组。
  • mask –可选的操作掩码,8位单通道数组,用于指定要更改的输出数组的元素。

以下是在网上找到的示例:http : //docs.opencv.org/trunk/d0/d86/tutorial_py_image_arithmetics.html