Skip to content

Instantly share code, notes, and snippets.

View abda53's full-sized avatar

Eric Lozaga abda53

View GitHub Profile
@abda53
abda53 / dfs
Created December 27, 2018 20:29
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):