Removing parts of the image [closed]

asked 2017-08-30 10:42:51 -0500

smtabatabaie gravatar image

updated 2017-09-01 14:20:22 -0500

Hi, I have an image and I want to simply remove(or mask) parts of it. this is my original image :

image description

And I want to remove a circle on its center via this image mask :

image description

I use this command in my code which from the tutorials I read should work and black out a circle in the center of my original image :

img = cv2.bitwise_not(imgOriginal,imgOriginal,mask=imgMask)

but the result I get is the image below, in fact instead of removing the masked parts, it just inverts blacks and whites:

image description


I'll appreciate if you can help me on finding a way to properly mask(or remove) the parts I want.
Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by sturkmen
close date 2017-08-30 12:06:14.050344

Comments

answered on SO. closing

sturkmen gravatar imagesturkmen ( 2017-08-30 12:05:27 -0500 )edit