octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #9853] (image) implement niftiread, niftiw


From: Qianqian Fang
Subject: [Octave-patch-tracker] [patch #9853] (image) implement niftiread, niftiwrite, niftiinfo
Date: Mon, 21 Oct 2019 18:38:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36

Follow-up Comment #5, patch #9853 (project octave):

@Guillaume

if reading/writing .gz can be resolved using the *fopen('z')* flag and support
to JSON format is not a high priority, then, I think the only needed units
are

* niftiread.m (calls nii2jnii)
* niftiwrite.m (calls nifticreate)
* niftiinfo.m (calls nii2jnii, niicodemap)
* loadnifti.m (alias to nii2jnii)
* savenifti.m (calls nifticreate, )
* nifticreate.m (calls memmapstream)
* nii2jnii.m (key - calls niiformat, memmapstream, niicodemap)
* niicodemap.m (needs containers.Map, available in Octave 5+)
* niiformat.m
* memmapstream.m

both *nii2jnii.m* and *savenifti.m* need to be slightly updated to replace the
*gzipencode/gzipdecode* calls by *fopen('z')* (although making the code
octave-specific).

you may also place some of the needed functions into private/ folder so it
won't conflict with *octave-jnifti* etc.

it is not my intent to propose to merge JSON/JNIfTI functionalities to
*octave-image* (unless the package maintainer is supportive), and I am
committed to maintain them as separate packages.

> I would be happy to help reformatting your code if needed.

much appreciated!

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9853>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]