Ask Your Question
0

What are all the parameters of bitwise_and?

asked 2015-11-19 02:46:13 -0600

arp1561 gravatar image

I am an opencv beginner but the documentation hasn't properly explained why we use the three parameters?

                           res = cv2.bitwise_and(frame,frame, mask= mask)

this is the specific line i did not understand.

If anyone can help, that would be great!

Thanks in advance! :D

edit retag flag offensive close merge delete

Comments

frame and mask have been created above.

arp1561 gravatar imagearp1561 ( 2015-11-19 02:46:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-11-19 02:49:35 -0600

thdrksdfthmn gravatar image

updated 2015-11-19 07:34:13 -0600

First frame is the input1, second frame is the input2 and the mask is used for applying the function (that does an and operation) only on the marked area You can see more in the docs.

edit flag offensive delete link more

Comments

1

@thdrksdfthmn do try to post correct solutions as an actual answer ;)

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-19 07:33:58 -0600 )edit

I was used to do the convert to answer :p Is it still an option?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-11-19 07:38:38 -0600 )edit
1

Under 'more' I still have the option to do so yes!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-20 04:44:03 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-11-19 02:46:13 -0600

Seen: 4,536 times

Last updated: Nov 19 '15