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

Spatial dimensions order #11

Open
riccardosamperna opened this issue Nov 13, 2019 · 0 comments
Open

Spatial dimensions order #11

riccardosamperna opened this issue Nov 13, 2019 · 0 comments

Comments

@riccardosamperna
Copy link

Hi,
thank you for sharing your code. I have a question about something you are doing here:

# to unify matrix dimension order between SimpleITK([x,y,z]) and numpy([z,y,x])

What is the reason to call np.transpose() on the axis? I am asking this question because I have seen it in different places but according to Tensorflow conv3d documentation the format of the spatial dimensions should be (z, y, x) already returned from sitk.GetArrayFromImage().

Am I missing something?

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