-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ITKReader doesn't return numpy array #2899
Copy link
Copy link
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'>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working