(self)
| 60 | |
| 61 | class TestResized(NumpyImageTestCase2D): |
| 62 | def test_invalid_inputs(self): |
| 63 | with self.assertRaises(ValueError): |
| 64 | resize = Resized(keys="img", spatial_size=(128, 128, 3), mode="order") |
| 65 | resize({"img": self.imt[0]}) |
| 66 | |
| 67 | with self.assertRaises(ValueError): |
| 68 | resize = Resized(keys="img", spatial_size=(128,), mode="order") |
| 69 | resize({"img": self.imt[0]}) |
| 70 | |
| 71 | def test_unchange(self): |
| 72 | resize = Resized(keys="img", spatial_size=(128, 64), mode="bilinear") |