MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / show_img

Function show_img

utils/visualize.py:22–39  ·  view source on GitHub ↗
(colors, background, img, clean, gt, *pds)

Source from the content-addressed store, hash-verified

20
21
22def show_img(colors, background, img, clean, gt, *pds):
23 im1 = np.array(img, np.uint8)
24 # set_img_color(colors, background, im1, clean, gt)
25 final = np.array(im1)
26 # the pivot black bar
27 pivot = np.zeros((im1.shape[0], 15, 3), dtype=np.uint8)
28 for pd in pds:
29 im = np.array(img, np.uint8)
30 # pd[np.where(gt == 255)] = 255
31 set_img_color(colors, background, im, pd, gt)
32 final = np.column_stack((final, pivot))
33 final = np.column_stack((final, im))
34
35 im = np.array(img, np.uint8)
36 set_img_color(colors, background, im, gt, True)
37 final = np.column_stack((final, pivot))
38 final = np.column_stack((final, im))
39 return final
40
41
42def get_colors(class_num):

Callers

nothing calls this directly

Calls 1

set_img_colorFunction · 0.85

Tested by

no test coverage detected