-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Currently, we use the itk.array_view_from_image() to get data array:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/data/image_reader.py#L316
But actually, it's not numpy array, so following logic which depends on numpy.ndarray type will fail.
loader = LoadImage()
img, meta = loader(dicom_path)
print(type(img))Get the output:
<class 'itk.itkPyBufferPython.NDArrayITKBase'>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working