Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing results from print image and mask volumes #3

Open
snrhlz opened this issue Jan 18, 2023 · 0 comments
Open

Not showing results from print image and mask volumes #3

snrhlz opened this issue Jan 18, 2023 · 0 comments

Comments

@snrhlz
Copy link

snrhlz commented Jan 18, 2023

Hi!
Before that, i have following all the code that you made and i didn't have the error so far but i have trouble that in the print function from this,

for index, filename in enumerate(sorted(glob.iglob(imagePathInput+'*.nii'))):
img = readImageVolume(filename, True)
print(filename, img.shape, np.sum(img.shape), np.min(img), np.max(img))
numOfSlices = sliceAndSaveVolumeImage(img, 'aorta1'+str(index), maskSliceOutput)
print(f'\n{filename}, {numOfSlices} slices created \n')

also in

for index, filename in enumerate(sorted(glob.iglob(maskPathInput+'*.nii'))):
img = readImageVolume(filename, True)
print(filename, img.shape, np.sum(img.shape), np.min(img), np.max(img))
numOfSlices = sliceAndSaveVolumeImage(img, 'aorta1'+str(index), maskSliceOutput)
print(f'\n{filename}, {numOfSlices} slices created \n')

didn't showing the results and didn't have an error, only the result is not showing. And also at the end, my number files that must contain all the slices is only showing 1, not all the slices that i have from the input data which is it must be 186 slices

Hoping u would answer and help me, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant