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

Method test_value

tests/transforms/test_shift_intensity.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22class TestShiftIntensity(NumpyImageTestCase2D):
23 def test_value(self):
24 shifter = ShiftIntensity(offset=1.0)
25 result = shifter(self.imt)
26 expected = self.imt + 1.0
27 np.testing.assert_allclose(result, expected)
28
29
30if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

ShiftIntensityClass · 0.90

Tested by

no test coverage detected