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

Function _create_itk_obj

tests/integration/test_meta_affine.py:108–112  ·  view source on GitHub ↗
(array, affine)

Source from the content-addressed store, hash-verified

106
107
108def _create_itk_obj(array, affine):
109 itk_img = deepcopy(array)
110 itk_img = convert_data_type(itk_img, np.ndarray)[0]
111 itk_obj = ITKWriter.create_backend_obj(itk_img, channel_dim=None, affine=affine, affine_lps=True)
112 return itk_obj
113
114
115def _resample_to_affine(itk_obj, ref_obj):

Callers 2

Calls 2

convert_data_typeFunction · 0.90
create_backend_objMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…