(img_in, border=0)
| 508 | |
| 509 | |
| 510 | def shave(img_in, border=0): |
| 511 | # img_in: Numpy, HWC or HW |
| 512 | img = np.copy(img_in) |
| 513 | h, w = img.shape[:2] |
| 514 | img = img[border:h-border, border:w-border] |
| 515 | return img |
| 516 | |
| 517 | |
| 518 | ''' |
nothing calls this directly
no outgoing calls
no test coverage detected