Skip to content

Instantly share code, notes, and snippets.

@khrlimam
khrlimam / rgb_color_channel.py
Last active January 7, 2017 10:50
Here is the snippet i use in https://web.facebook.com/notes/khairul-imam/rgb-color-channel-quick-glance/519312241608587. No need to create a new file, you can use IPython just to test the code. Make sure you have numpy, scipy, matplotlib installed in your virtualenvironment or computer
import cv2 as cv
from matplotlib import pyplot as plt
#load image
rgb_image = cv.imread('images/bebek_imut.jpg')
#see the output
rgb_image
#print rgb_image's shape