-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
meta_dict
{'aux_file': '', 'bitpix': '64', 'cal_max': '0', 'cal_min': '0', 'datatype': '64', 'descrip': '', 'dim[0]': '4', 'dim[1]': '3', 'dim[2]': '128', 'dim[3]': '128', 'dim[4]': '128', 'dim[5]': '1', 'dim[6]': '1', 'dim[7]': '1', 'dim_info': '0', 'intent_code': '0', 'intent_name': '', 'intent_p1': '0', 'intent_p2': '0', 'intent_p3': '0', 'nifti_type': '1', 'pixdim[0]': '0', 'pixdim[1]': '1', 'pixdim[2]': '1', 'pixdim[3]': '1', 'pixdim[4]': '1', 'pixdim[5]': '1', 'pixdim[6]': '1', 'pixdim[7]': '1', 'qfac': 0.0, 'qform_code': '0', 'qform_code_name': 'NIFTI_XFORM_UNKNOWN', 'qoffset_x': '0', 'qoffset_y': '0', 'qoffset_z': '0', 'qto_xyz': itkMatrixF44 ([[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]), 'quatern_b': '0', 'quatern_c': '0', 'quatern_d': '0', 'scl_inter': '0', 'scl_slope': '1', 'sform_code': '2', 'sform_code_name': 'NIFTI_XFORM_ALIGNED_ANAT', 'slice_code': '0', 'slice_duration': '0', 'slice_end': '0', 'slice_start': '0', 'srow_x': '1 0 0 0', 'srow_y': '0 1 0 0', 'srow_z': '0 0 1 0', 'toffset': '0', 'vox_offset': '352', 'xyzt_units': '0'}
(Pdb) from monai.transforms.io.array import switch_endianness
(Pdb) switch_endianness(meta_dict)
*** RuntimeError: Unknown type: itkMatrixF44issue from
MONAI/monai/data/image_reader.py
Lines 320 to 321 in 8b1f0c3
| img_meta_dict = img.GetMetaDataDictionary() | |
| meta_dict = {key: img_meta_dict[key] for key in img_meta_dict.GetKeys() if not key.startswith("ITK_")} |
with itk 5.3rc4.post3
related to Project-MONAI/MONAILabel#1064
Metadata
Metadata
Assignees
Labels
No labels