View my latest photography time capsule here.
I'm experimenting with the OpenCV programming library as part of the Computational Photography course I'm taking at Coursera . I don't know if I'll be able to finish the course due to my other obligations, but I just thought I would share my first little test program so that my students might benefit. This program reads in a picture file, then simply strips off the red, green, and blue channels and saves the files. I've written the program so it can easily be adapted for other picture files. Simply replace "flower" with the base part of your filename in the img_base_name variable and enter the path to your picture file in the img_path variable. Note th at the OpenCV and the numpy libraries must be installed and that you need to be using Python 2.x. Here's my program: # imports import cv2 # the computer vision library, from http://opencv.org/ import numpy as np # wasn't needed but is always imported in examples # make it easy to mo