File size: 218 Bytes
499e141
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
# -*- coding: utf-8 -*-
# @Author  : xuelun
import numpy as np
from imageio import imread


def read_depth(filename):
    depth = np.array(imread(filename))
    depth = depth.astype(np.float32) / 1000
    return depth