MCPcopy Create free account
hub / github.com/DSL-Lab/GRBM / show_img

Function show_img

utils.py:68–80  ·  view source on GitHub ↗
(matrix, title)

Source from the content-addressed store, hash-verified

66
67
68def show_img(matrix, title):
69 plt.figure()
70 plt.axis('off')
71 plt.gray()
72 img = np.array(matrix, np.float64)
73 plt.imshow(img)
74 plt.title(title)
75
76 fig = plt.gcf()
77 img_out = fig2img(fig)
78 plt.close()
79
80 return img_out
81
82
83def save_gif_fancy(imgs, nrow, save_name):

Callers 1

save_gif_fancyFunction · 0.85

Calls 1

fig2imgFunction · 0.85

Tested by

no test coverage detected