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

Feature request: Reading niftis (.nii) and compressed nifti (.nii.gz) #439

Open
RobAnKo opened this issue Feb 3, 2023 · 0 comments
Open

Comments

@RobAnKo
Copy link

RobAnKo commented Feb 3, 2023

Hello dear PIMS people,

first of all: this is a cool tool, kudos for making it publicly available!

My issue: I am trying to use pims.open to access a sequence of image files stored as compressed nifti files (.nii.gz). When this did not work (UnknownFormatError: Could not autodetect how to load a file of type gz. Try manually specifying a loader class, e.g. Video(/home/user/Desktop/testfile.nii.gz), I tried it on uncompressed nifti files (.nii), but the same error occured.

The bit ...how to load a file of type gz indicates that the "double-dot extension" .nii.gz is not correctly parsed.

Based on the documentation, reading niftis should be possible, since PIMS has access to the imageio reader functionality, which in turn can call an ITK plugin to read .nii as well as .nii.gz (according to the docs).

Am I missing something? Is there a way to tell PIMS where to look for the reader function?

If you could point me towards the relevant sections in the codebase, I would try and implement a solution in a dedicated PR.

Thank you in advance!

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