()
| 18 | |
| 19 | |
| 20 | def test_create_image(): |
| 21 | image = mitk.Image() |
| 22 | image.initialize("float32", [64, 64, 64]) |
| 23 | |
| 24 | assert image.get_dimension() == 3 |
| 25 | assert image.get_dimension(0) == 64 |
| 26 | |
| 27 | array = image.as_numpy() |
| 28 | assert array.shape == (64, 64, 64) |
| 29 | assert array.dtype == np.float32 |
| 30 | |
| 31 | |
| 32 | def test_image_constructor(tmp_path): |
nothing calls this directly
no test coverage detected