Skip to content

Commit 26c350a

Browse files
authored
Update nii2png.py
1 parent ff08fe6 commit 26c350a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nii2png.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python3
22
'''
3-
NIfTI Image Converter (v0.1.5)
3+
NIfTI Image Converter (v0.1.6)
44
Created by Alexander Laurence
55
7 May 2019
66
MIT License
@@ -82,7 +82,7 @@
8282
data = numpy.rot90(image_array[:, :, i])
8383
#alternate slices and save as png
8484
if (slice_counter % 1) == 0:
85-
image_name = fn[:-4] + "_t" "{:0>3}".format(str(j)) + "_z" + "{:0>3}".format(str(i))+ ".png"
85+
image_name = fn[:-4] + "_z" + "{:0>3}".format(str(i))+ ".png"
8686
scipy.misc.imsave(image_name, data)
8787

8888
#move images to folder

0 commit comments

Comments
 (0)