DICOMSegmentationWriterOperator throwing ValueError #6825
Closed
ArpanGyawali
started this conversation in
General
Replies: 1 comment
-
Duplicated. Another ques posted |
Beta Was this translation helpful? Give feedback.
0 replies
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
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