def pretty_depth(depth):
 np.clip(depth, 0, ((2 ** 10) - 1), depth)
 depth >>= 2
 depth = depth.astype(np.uint8)
 return depth

def pretty_depth ( depth ) : np . clip ( depth , 0 , ( ( 2 ** 10 ) - 1 ) , depth ) depth >>= 2 depth = depth . astype ( np . uint8 ) return depth
converts depth into a nicer format for display this is abstracted to allow for experimentation with normalization args: depth: a numpy array with 2 bytes per pixel returns: a numpy array that has been processed whos datatype is unspecified .