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

What does bitwise_and operator exactly do in openCV?

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

I did not exactly understand what the "bitwise_and" operator does when used in openCV. I would also like to know about it's parameters.

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

bitwise_and

Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.

Parameters:

  • src1 – first input array or a scalar.
  • src2 – second input array or a scalar.
  • src – single input array.
  • value – scalar value.
  • 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.

Here is an example found on the web: http://docs.opencv.org/trunk/d0/d86/tutorial_py_image_arithmetics.html