(image)
| 80 | #---------------------------------------------------------------------------- |
| 81 | |
| 82 | def prepare_texture_data(image): |
| 83 | image = np.asarray(image) |
| 84 | if image.ndim == 2: |
| 85 | image = image[:, :, np.newaxis] |
| 86 | if image.dtype.name == 'float64': |
| 87 | image = image.astype('float32') |
| 88 | return image |
| 89 | |
| 90 | #---------------------------------------------------------------------------- |
| 91 |
no outgoing calls
no test coverage detected