We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff08fe6 commit 26c350aCopy full SHA for 26c350a
nii2png.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/python3
2
'''
3
-NIfTI Image Converter (v0.1.5)
+NIfTI Image Converter (v0.1.6)
4
Created by Alexander Laurence
5
7 May 2019
6
MIT License
@@ -82,7 +82,7 @@
82
data = numpy.rot90(image_array[:, :, i])
83
#alternate slices and save as png
84
if (slice_counter % 1) == 0:
85
- image_name = fn[:-4] + "_t" "{:0>3}".format(str(j)) + "_z" + "{:0>3}".format(str(i))+ ".png"
+ image_name = fn[:-4] + "_z" + "{:0>3}".format(str(i))+ ".png"
86
scipy.misc.imsave(image_name, data)
87
88
#move images to folder
0 commit comments