Skip to content

Instantly share code, notes, and snippets.

@nfsrules
Created April 19, 2018 12:09
Show Gist options
  • Save nfsrules/3d9789c6ef0b723937b12dc020292044 to your computer and use it in GitHub Desktop.
Save nfsrules/3d9789c6ef0b723937b12dc020292044 to your computer and use it in GitHub Desktop.
OpenCV bitwise add operation
# Convert RGB to BGR. (optional)
dst_map = cv2.cvtColor(dst_map, cv2.COLOR_RGB2BGR)
# Add feature map and original image
merged_img = cv2.add(dst_map, cropped_img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment