1. Geometry (Depth structure) in a Scene
2. Stereo
3. Parallax
4. Compute depth from a stereo image pair
Depth (of a scene)
3D scene -> illumination -> optics -> sensor -> processing -> display -> user
Above all, we are interested in capturing a 3D scene with Geometry
Xo,Yo,Zo
Xi = Xo/Zof, Yi=Yo/Zof
Fundamental ambiguity any points along the same ray map to the same point int the image
Perspective Nanishing lines/points
Depth Cues
trimensional
3D scanner for iPhone
Depth Cues
shape from structured light
Shape from x
– perspective, shading, motion, focus, occlusions, objects
"""Make an Anaglyph Image.""" import numpy as np import cv2 def make_anaglyph(img_left, img_right): return np.dstack([img_right, img_right, img_left]) def test_run(): """Driver function called by Test Run.""" img_left = cv2.imread("flowers-left.png", 0) img_right = cv2.imread("flowers-right.png", 0) cv2.imshow("Left image", img_left) cv2.imshow("Right image", img_right) img_ana = make_anaglyph(img_left, img_right) cv2.imshow("Anaglyph image", img_ana)