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

Unable to read nrrd files python #105

Closed
kishanbala opened this issue Dec 20, 2019 · 1 comment
Closed

Unable to read nrrd files python #105

kishanbala opened this issue Dec 20, 2019 · 1 comment

Comments

@kishanbala
Copy link

Hi,
I am working on a segmentation project in which my images and masks are in nrrd file format. Within an nrrd file, there are 900 slices of data. I would like to read them and convert them to numpy arrays or pytorch tensors. I could not find a solution. Been stuck at this point for more than a week. Kindly help!!!!

@addisonElliott
Copy link
Collaborator

Sorry for the late response. The example on the README should be enough to get you started with using this library and reading in NRRD files.

By default, pynrrd reads the data and returns it as a Numpy array already. It will be up to you then to manipulate the data and transform it for pytorch use.

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