Construct a `Bbox` by expanding this one around its center by the factors *sw* and *sh*.
(self, sw, sh)
| 609 | self, np.atleast_3d([np.array(x) for x in bboxes])) |
| 610 | |
| 611 | def expanded(self, sw, sh): |
| 612 | """ |
| 613 | Construct a `Bbox` by expanding this one around its center by the |
| 614 | factors *sw* and *sh*. |
| 615 | """ |
| 616 | width = self.width |
| 617 | height = self.height |
| 618 | deltaw = (sw * width - width) / 2.0 |
| 619 | deltah = (sh * height - height) / 2.0 |
| 620 | a = np.array([[-deltaw, -deltah], [deltaw, deltah]]) |
| 621 | return Bbox(self._points + a) |
| 622 | |
| 623 | def padded(self, w_pad, h_pad=None): |
| 624 | """ |
no test coverage detected