-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] Extend NiftiDataLoader Operator to output Image object #421
Comments
@jtetrea I used SimpleITK as an image loader for the nifti image. However if you use |
The MONAI Core LoadImage function with its nii reader also output MetaTensor, essentially Torch Tensor with the few piece of metadata returned from nii reader. The Deploy App SDK inference operators' internal and the InMemImageReader had been updated to support MetaTensor in v0.5. |
Is your enhancement request related to a problem? Please describe.
NiftiDataLoader operator currently outputs a np.ndarray. Need to extend this to wrap in an Image object with correct meta/header information to more easily work with existing MAP workflows.
Describe the solution you'd like
NiftiDataLoader with Image object as IN_MEMORY output.
Describe alternatives you've considered
An alternative would be to use the original DICOM images and take advantage of existing operators, but this is just not possible in some cases where Nifti files are the only form of data.
Additional context
An enhancement like this could enable a workflow such as processing a large batch (10,000+) of Nifti images for rapid inference.
The text was updated successfully, but these errors were encountered: