Return a proper background image of background_shape, given img. Args: background_shape (tuple): a shape (h, w) img: an image Returns: a background image
(self, background_shape, img)
| 16 | """ Base class for all BackgroundFiller""" |
| 17 | |
| 18 | def fill(self, background_shape, img): |
| 19 | """ |
| 20 | Return a proper background image of background_shape, given img. |
| 21 | |
| 22 | Args: |
| 23 | background_shape (tuple): a shape (h, w) |
| 24 | img: an image |
| 25 | Returns: |
| 26 | a background image |
| 27 | """ |
| 28 | background_shape = tuple(background_shape) |
| 29 | return self._fill(background_shape, img) |
| 30 | |
| 31 | @abstractmethod |
| 32 | def _fill(self, background_shape, img): |
no test coverage detected