def scale_camera(cam, scale=1):
    ' resize input in order to produce sampled depth map '
    new_cam = np.copy(cam)
    new_cam[1][0][0] = (cam[1][0][0] * scale)
    new_cam[1][1][1] = (cam[1][1][1] * scale)
    new_cam[1][0][2] = (cam[1][0][2] * scale)
    new_cam[1][1][2] = (cam[1][1][2] * scale)
    return new_cam
resize input in order to produce sampled depth map
def scale_camera(cam, scale=1):
    '  '
    new_cam = np.copy(cam)
    new_cam[1][0][0] = (cam[1][0][0] * scale)
    new_cam[1][1][1] = (cam[1][1][1] * scale)
    new_cam[1][0][2] = (cam[1][0][2] * scale)
    new_cam[1][1][2] = (cam[1][1][2] * scale)
    return new_cam