Return the number of pixels in each image.
(self)
| 169 | self.texture_idxs = None |
| 170 | |
| 171 | def get_all_num_pixels(self) -> T.List[int]: |
| 172 | """Return the number of pixels in each image.""" |
| 173 | n_pxs = [] |
| 174 | for i in range(len(self.input_cameras)): |
| 175 | camera: structures.Camera = self.input_cameras[i] |
| 176 | n_px = camera.height_px * camera.width_px |
| 177 | n_pxs.append(n_px) |
| 178 | return n_pxs |
| 179 | |
| 180 | def _set_camera_defaults(self): |
| 181 | """Set the defaults for attributes.""" |
no outgoing calls
no test coverage detected