Skip to content

Instantly share code, notes, and snippets.

@ericxyan
Last active March 28, 2016 18:46
Show Gist options
  • Save ericxyan/d614f4357e7ee247368f to your computer and use it in GitHub Desktop.
Save ericxyan/d614f4357e7ee247368f to your computer and use it in GitHub Desktop.
import cv2
import numpy as np
from matplotlib import pyplot as plt
# show gray image
plt.imshow(img, cmap=plt.get_cmap('gray'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment