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

Copy SpatialImage into HDF5 #214

Open
alexsavio opened this issue Nov 23, 2013 · 6 comments
Open

Copy SpatialImage into HDF5 #214

alexsavio opened this issue Nov 23, 2013 · 6 comments

Comments

@alexsavio
Copy link

Hello,

I've implemented functions to copy a Nifti1Image into an HDF5 file group with h5py. The idea is to be able to have a whole dataset inside an HDF5 file.
Would this be a contribution of interest in the context of nibabel?
If yes, I could also implement the method for the rest of image formats.

Thank you very much.

My kind regards,
Alex

@matthew-brett
Copy link
Member

Thanks a lot - yes - that does sound interesting

Did you already check out the MINC2 format? Would write access for
MINC2 help for your case?

@alexsavio
Copy link
Author

Hi,

Great! Currently I have the implementation for Nifti1Image and Nifti1Header
because it is what I use most.
I haven't checked the MINC2 case, I only know its a specification of HDF5.

Where do you feel is the most suitable place to put the implementation I
already have?
Then you can see if I should make any improvement and after that I'll start
with the other formats, if you agree.

Thanks.

Cheers,
Alex

Alexandre Manhães Savio [email protected]
Grupo de Inteligencia Computacional http://www.ehu.es/ccwintco
Departamento de CCIA
UPV/EHU

On 23 November 2013 22:27, Matthew Brett [email protected] wrote:

Thanks a lot - yes - that does sound interesting

Did you already check out the MINC2 format? Would write access for
MINC2 help for your case?


Reply to this email directly or view it on GitHubhttps://github.com//issues/214#issuecomment-29142025
.

@matthew-brett
Copy link
Member

Hmm - well - why not put what you have into a branch - without trying
to integrate it - and make a pull request with WIP in the title - work
in progress. I will try and take a look - probably in a couple of
days I'm afraid - I'm in Cuba on a very slow and internittent
connection.

MINC2 is an HDF5 image format - yes - but maybe we could save Nifti1
images as MINC2 and then load them in nibabel - saving them to Nifti1
files as necessary.

I don't think MINC2 files allow more than one image though.

@alexsavio
Copy link
Author

Hi,

Ok. I'm not in a hurry, just found to be working on this lately.
I've just pulled a request: #215

I created a new file: hdfloadsave.py because you asked me to not integrate it.

Cheers,
Alex

@matthew-brett
Copy link
Member

Thanks - sorry - I am in Cuba with very little internet - will try to
have a look and get back to you soon.

@alexsavio
Copy link
Author

Hi,
Thanks for the message. No problem, I'll wait.

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