What does bitwise_and operator exactly do in openCV?

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

Leave a Comment