Return the shape of the image as tuple (numrows, numcols, channels).
(self)
| 305 | return self.get_shape()[:2] |
| 306 | |
| 307 | def get_shape(self): |
| 308 | """ |
| 309 | Return the shape of the image as tuple (numrows, numcols, channels). |
| 310 | """ |
| 311 | if self._A is None: |
| 312 | raise RuntimeError('You must first set the image array') |
| 313 | |
| 314 | return self._A.shape |
| 315 | |
| 316 | def set_alpha(self, alpha): |
| 317 | """ |
no outgoing calls