(matrix, title)
| 66 | |
| 67 | |
| 68 | def 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 | |
| 83 | def save_gif_fancy(imgs, nrow, save_name): |
no test coverage detected