Skip to content

Instantly share code, notes, and snippets.

@vivekseth
Created January 4, 2017 17:06
Show Gist options
  • Save vivekseth/d1dd2418b65b73d5713fdf0124bd18ae to your computer and use it in GitHub Desktop.
Save vivekseth/d1dd2418b65b73d5713fdf0124bd18ae to your computer and use it in GitHub Desktop.
import cv2
image = cv2.imread('./4.2.04.tiff')
# Since OpenCV uses BGR, this code will correctly remove the red channel
image[:, :, 2] = 0
cv2.imshow('Hello World', image)
k = cv2.waitKey(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment