Replies: 1 comment 5 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After several hours of trying and looking through all kind of examples and tutorials I am close to giving up onthis simple problem.
I want to make a demo app in Monai that does nothing more than convert a dicom series to a nifti image.
For this, I use a workflow that looks like this
where DICOMDataLoaderOperator, DICOMSeriesSelectorOperator and DICOMSeriesToVolume are just the pre-defined operators found in monai-deploy.
The VolumeToNiftiOperator looks like this:
The code executes when I run the method
saver
with just the image information, that is,saver(volume_image.asnumpy())
but I would like to run this with the metadata contained involume_image.metadata()
when I try to run this as written in the code above I get an error:I am rather sure that my image is healthy and in good condition as the operators handling the Dicom image before it langs in the VolumeToNiftiOperator work fine.
It is extremely hard to find a correct way of doing this so the solution might be obvious but as a novice in the framework it is very hard to really understand how these methods are supposed to be used, especially since it seems like solutions for versions prior to 0.6.0 do not apply and work in this version anymore.
Beta Was this translation helpful? Give feedback.
All reactions