Args: img (ndarray): an RGB image of shape (H, W, 3) in range [0, 255]. scale (float): scale the input image
(self, img, scale=1.0)
| 256 | |
| 257 | class VisImage: |
| 258 | def __init__(self, img, scale=1.0): |
| 259 | """ |
| 260 | Args: |
| 261 | img (ndarray): an RGB image of shape (H, W, 3) in range [0, 255]. |
| 262 | scale (float): scale the input image |
| 263 | """ |
| 264 | self.img = img |
| 265 | self.scale = scale |
| 266 | self.width, self.height = img.shape[1], img.shape[0] |
| 267 | self._setup_figure(img) |
| 268 | |
| 269 | def _setup_figure(self, img): |
| 270 | """ |
nothing calls this directly
no test coverage detected