DICOMSegmentationWriterOperator throwing ValueError #446
ArpanGyawali
started this conversation in
General
Replies: 2 comments 3 replies
-
It is likely the DIMs are switched, i.e. HWD vs DHW, as the error indicates. |
Beta Was this translation helpful? Give feedback.
2 replies
-
The image looks flipped, rendered with neurology convention while the viewer is in radiology convention. I will find time to take a closer look one back from vacation in two weeks. BTW, a new version of the App SDK has been published, so the existing app based on the App SDK v0.5.1 and lower needs to pin modal-deploy-app-sdk to 0.5.1 or ~=0.5.1. Thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using my own operator for the task of Skull Stripping and deploying the application. My pipeline is
Every operations are successful and the predicted nifty file is saved but at writing dicom file operation it throws an error.
ValueError: Number of plane positions in source image(s) does not match size of first dimension of "pixel_array" argument.
Also my predicted nifty segmentation is flipped as shown in figure
And i get this warning while loading the segmentation in ITKSnap
I tried using various post transforms like Flipd and Orientationd as seen in the code below to reorient the prediction but the result is the same,
SkullStrip_operator.py
This flipd transform doesnot have any effect in output.
Is the previous error i mentioned due to this oncorrect orientation?
Any help would be very appreciated.
Beta Was this translation helpful? Give feedback.
All reactions