We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb70ba6 commit 6610eb6Copy full SHA for 6610eb6
ConvertLabels.py
@@ -26,10 +26,10 @@
26
if (len(sys.argv) < 5):
27
print 'saving result to', str(sys.argv[3])
28
29
- nrrd.write(str(sys.argv[3]), tempd, options=option)
+ nrrd.write(str(sys.argv[3]), np.uint8(tempd), options=option)
30
else:
31
print 'saving result to', str(sys.argv[4])
32
33
- nrrd.write(str(sys.argv[4]), tempd, options=option)
+ nrrd.write(str(sys.argv[4]), np.uint8(tempd), options=option)
34
35
print 'Done.'
0 commit comments