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

coronal plane and cross section #95

Closed
Chida15 opened this issue May 13, 2019 · 1 comment
Closed

coronal plane and cross section #95

Chida15 opened this issue May 13, 2019 · 1 comment

Comments

@Chida15
Copy link

Chida15 commented May 13, 2019

How can I get the coronal plane?why can I just get the cross section?

@addisonElliott
Copy link
Collaborator

Not sure I fully understand your question. You may need to elaborate.

The data returned by pynrrd is a Numpy data array, so slicing the data from there is up to you.

For example, here is how you could slice the coronal plane for the data:

import nrrd

data, header = nrrd.read('FILE_PATH_HERE')

coronalPlane20 = data[:, 20, :]

Please elaborate and explain your question in more detail. I'm going to close this thread in a few days if no response is given.

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

2 participants