Code from my 2017 summer internship at PISCES used to calibrate, rectify, and create 3D anaglyph images out of stereo images.
- OpenCV 3.
- numpy
- PyYaml
- PIL
stereo_calib_yaml.py: Takes in stereo images of checkerboard patterns labeled Left_ and Right_ and creates yaml files of the stereo calibration matrices and stereo rectify matrices.
map_yaml.py: Uses the yaml files of the stereo calibration matrices and the stereo rectify matrices to map out calibrated and rectified stereo images in a folder with images labeled Left_ and Right_
horizontal_line.py: Blends two images together and adds green horizontal lines. I use this to see if my stereo images rectified correctly.
anaglyph.py: Takes in a stereo image pair and converts to a single anaglyph image.
PISCES's Helelani Rover taking a stereo picture of a stack of rocks on Mauna Kea. The orange mount on the top left of the rover holds the stereoscopic cameras.
Anaglyph image of the stack of rocks shown in the previous image