(self)
| 69 | resize({"img": self.imt[0]}) |
| 70 | |
| 71 | def test_unchange(self): |
| 72 | resize = Resized(keys="img", spatial_size=(128, 64), mode="bilinear") |
| 73 | set_track_meta(False) |
| 74 | for p in TEST_NDARRAYS_ALL: |
| 75 | im = p(self.imt[0]) |
| 76 | result = resize({"img": im})["img"] |
| 77 | assert_allclose(im, result, type_test=False) |
| 78 | set_track_meta(True) |
| 79 | |
| 80 | @parameterized.expand(TEST_CORRECT_CASES) |
| 81 | def test_correct_results(self, spatial_size, mode, anti_aliasing): |
nothing calls this directly
no test coverage detected