This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
fx = 942.8 # lense focal length | |
baseline = 54.8 # distance in mm between the two cameras | |
disparities = 64 # num of disparities to consider | |
block = 15 # block size to match | |
units = 0.001 # depth units | |
for i in xrange(block, left.shape[0] - block - 1): | |
for j in xrange(block + disparities, left.shape[1] - block - 1): |