(colors, background, img, clean, gt, *pds)
| 20 | |
| 21 | |
| 22 | def 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 | |
| 42 | def get_colors(class_num): |
nothing calls this directly
no test coverage detected