{"id":50316832,"url":"https://github.com/gllmflndn/gifti","last_synced_at":"2026-05-29T00:04:27.119Z","repository":{"id":42075955,"uuid":"141407708","full_name":"gllmflndn/gifti","owner":"gllmflndn","description":"MATLAB/Octave GIfTI Library","archived":false,"fork":false,"pushed_at":"2025-03-10T11:48:54.000Z","size":1056,"stargazers_count":25,"open_issues_count":5,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T12:30:01.586Z","etag":null,"topics":["gifti","matlab","neuroimaging","neuroscience","octave"],"latest_commit_sha":null,"homepage":"https://www.gllmflndn.com/software/matlab/gifti/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gllmflndn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-18T08:50:56.000Z","updated_at":"2025-03-10T11:48:57.000Z","dependencies_parsed_at":"2023-01-24T03:45:17.839Z","dependency_job_id":"58dc40f4-1ca7-4794-ad6f-e32844e8e896","html_url":"https://github.com/gllmflndn/gifti","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gllmflndn/gifti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gllmflndn%2Fgifti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gllmflndn%2Fgifti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gllmflndn%2Fgifti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gllmflndn%2Fgifti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gllmflndn","download_url":"https://codeload.github.com/gllmflndn/gifti/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gllmflndn%2Fgifti/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33631013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gifti","matlab","neuroimaging","neuroscience","octave"],"created_at":"2026-05-29T00:04:27.004Z","updated_at":"2026-05-29T00:04:27.113Z","avatar_url":"https://github.com/gllmflndn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIfTI library for MATLAB/Octave\n\n![GitHub](https://img.shields.io/github/license/gllmflndn/gifti)\n[![MATLAB](https://github.com/gllmflndn/gifti/actions/workflows/matlab.yml/badge.svg)](https://github.com/gllmflndn/gifti/actions)\n[![Octave](https://github.com/gllmflndn/gifti/actions/workflows/octave.yml/badge.svg)](https://github.com/gllmflndn/gifti/actions)\n\nThis GIfTI library allows to handle the GIfTI Geometry file format from the Neuroimaging\nInformatics Technology Initiative (NIfTI) using a MATLAB/Octave class:\n  * GIfTI: https://www.nitrc.org/projects/gifti/\n  * NIfTI: https://nifti.nimh.nih.gov/\n\nIt relies on external libraries:\n  * [yxml](https://dev.yorhel.nl/yxml), by Yoran Heling\n  * [Base64](https://stackoverflow.com/a/37109258), by polfosol\n  * [miniz](https://github.com/richgel999/miniz), by Rich Geldreich\n\nNote that these tools are already included in the GIfTI library provided\nhere, so you don't need to install them separately.\n\nThere are import facilities from [FreeSurfer](https://surfer.nmr.mgh.harvard.edu/fswiki/FileFormats),\n[VTK](https://vtk.org/), [Wavefront OBJ](https://www.wikipedia.org/wiki/Wavefront_.obj_file),\n[Stanford PLY](https://www.wikipedia.org/wiki/PLY_%28file_format%29),\n[STL](https://www.wikipedia.org/wiki/STL_%28file_format%29) and\n[MZ3](https://github.com/neurolabusc/surf-ice/tree/master/mz3) file formats.\n\nThere are export facilities to [VTK](https://vtk.org/),\n[Collada](https://www.khronos.org/collada/),\n[IDTF](http://www.meshlab.net/),\n[Wavefront OBJ](https://www.wikipedia.org/wiki/Wavefront_.obj_file) and\n[JS/JSON](https://plot.ly/javascript/) (for [Plotly](https://plot.ly/javascript/)) file formats.\n\nThis library is also part of [SPM](https://www.fil.ion.ucl.ac.uk/spm/).\n\n## INSTALLATION\n\n[MATLAB](https://www.mathworks.com/products/matlab.html) R2007a or above is required to use most of the features of\nthis toolbox. [GNU Octave](https://www.octave.org/) is also supported.\n \nAll the code is embedded in a `@gifti` class. To install it, all you need is to \nmake sure that the directory containing `@gifti` is in MATLAB path:\n \n```matlab\naddpath /home/login/Documents/MATLAB/gifti\n```\n \nThe library relies on a number of C-MEX files (`zstream`, `base64`, `xml_parser`).\nCompiled versions for 64 bit MATLAB on Windows, Linux and Mac are provided\nbut they can easily be compiled by yourself otherwise, see `@gifti/private/Makefile`.\n  \n## TUTORIAL\n \nIn the following, we use the files contained in `BV_GIFTI.tar.gz` (BrainVISA examples),\navailable from the [NITRC website](https://www.nitrc.org/frs/?group_id=75\u0026release_id=123): \n   \n```matlab\n% Read the GIfTI surface file\ng = gifti('sujet01_Lwhite.surf.gii')\n\n% Read the GIfTI shape file\nc = gifti('sujet01_Lwhite.shape.gii')\n\n% Display mesh\nfigure; plot(g);\n% Display mesh with curvature\nfigure; plot(g,c);\n```\n   \nIn a similar way, a `gifti` object can be created from an extracted isosurface from volume data and saved to a file:\n   \n```matlab\nload mri % an example dataset available in MATLAB\nD = squeeze(D);\nDs = smooth3(D);\ng = gifti(isosurface(Ds,5))\n\nh = plot(g);\ndaspect([1,1,.4]); view(45,30); axis tight\nlightangle(45,30);\nset(h,'SpecularColorReflectance',0,'SpecularExponent',50)\n\nsave(g,'mri.surf.gii','Base64Binary');\n```\n\n## SEE ALSO\n\n[Export to Plotly](https://gllmflndn.github.io/gifti/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgllmflndn%2Fgifti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgllmflndn%2Fgifti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgllmflndn%2Fgifti/lists"}