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

Method get_data

tests/transforms/test_fourier.py:36–39  ·  view source on GitHub ↗
(img_shape)

Source from the content-addressed store, hash-verified

34
35 @staticmethod
36 def get_data(img_shape):
37 create_test_image = create_test_image_2d if len(img_shape) == 2 else create_test_image_3d
38 im = create_test_image(*img_shape, num_objs=4, rad_max=20, noise_max=0.0, num_seg_classes=5)[0][None]
39 return torch.Tensor(im)
40
41 @parameterized.expand(TEST_CASES)
42 def test_forward(self, img_shape):

Callers 11

test_forwardMethod · 0.95
test_backwardMethod · 0.95
test_read_whole_imageMethod · 0.45
test_read_regionMethod · 0.45
test_read_rgbaMethod · 0.45
test_read_malformatsMethod · 0.45
test_errorsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected