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

read NRRD file format #991

Open
Git-me-outta-here opened this issue Jul 7, 2020 · 4 comments
Open

read NRRD file format #991

Git-me-outta-here opened this issue Jul 7, 2020 · 4 comments

Comments

@Git-me-outta-here
Copy link

I'd like to load volume files of the nrrd format. Can I do this directly with inviwo?

@AnkeAnke
Copy link
Contributor

AnkeAnke commented Jul 7, 2020

The tensorvis module (available to be compiled alongside inviwo core) contains an NDDR reader for reading tensor data (header file).

To read a scalar/vector volume, the processor would need some tweaks though.

@Git-me-outta-here
Copy link
Author

I want to read a scalar volume.

I found a possible solution here https://stackoverflow.com/questions/47761353/nrrd-to-nifti-file-conversion

The nifti files should be readable. I'll report back if I can make it work!

@Git-me-outta-here
Copy link
Author

The python code works wonderfully. I just saw in the documentation that you have python processors. Could you support nrrd files directly using the pynrrd lib?

@martinfalk
Copy link
Contributor

Sure. We use python libs in some of our processors, too. For example in the CHGCAR processor (https://github.com/inviwo/modules/blob/master/misc/vasp/python/processors/chgcarsource.py) or the import of CIF and PDB files (https://github.com/inviwo/modules/blob/master/molvis/molvispython/python/processors/MolecularStructureSource.py).

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

No branches or pull requests

4 participants