| 1 |
import numpy as np |
| 2 |
|
| 3 |
import imgviz |
| 4 |
|
| 5 |
|
| 6 |
def test_depth2rgb(): |
| 7 |
data = imgviz.data.arc2017() |
| 8 |
|
| 9 |
depthviz = imgviz.depth2rgb(data["depth"]) |
| 10 |
|
| 11 |
assert depthviz.dtype == np.uint8 |
| 12 |
H, W = data["depth"].shape[:2] |
| 13 |
assert depthviz.shape == (H, W, 3) |