MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_unchange

Method test_unchange

tests/transforms/test_resized.py:71–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

ResizedClass · 0.90
set_track_metaFunction · 0.90
assert_allcloseFunction · 0.90
resizeFunction · 0.85

Tested by

no test coverage detected