Debian Codegraph @

tests/test_tile.py

raw symbols SCIP
1 import numpy as np
2
3 import imgviz
4
5
6 def test_tile():
7 img1 = np.random.uniform(0, 255, (15, 25, 3)).round().astype(np.uint8)
8 img2 = np.random.uniform(0, 255, (25, 25, 3)).round().astype(np.uint8)
9 img3 = np.random.uniform(0, 255, (25, 10, 3)).round().astype(np.uint8)
10 tiled = imgviz.tile([img1, img2, img3], (1, 3))
11
12 assert tiled.shape == (25, 75, 3)
13 assert tiled.dtype == np.uint8