{"id":16361864,"url":"https://github.com/enet4/nifti-rs","last_synced_at":"2025-10-25T09:37:33.881Z","repository":{"id":21340103,"uuid":"90387823","full_name":"Enet4/nifti-rs","owner":"Enet4","description":"Rust implementation of the NIfTI-1 format","archived":false,"fork":false,"pushed_at":"2023-07-05T20:09:49.000Z","size":1095,"stargazers_count":40,"open_issues_count":10,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T02:14:57.442Z","etag":null,"topics":["hacktoberfest","medical-imaging","neuroimaging","nifti","nifti-format","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Enet4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-05T15:03:06.000Z","updated_at":"2024-09-15T12:23:09.000Z","dependencies_parsed_at":"2023-01-13T21:25:11.584Z","dependency_job_id":"88b212eb-b1ee-41a0-9cd2-20bdedca37a5","html_url":"https://github.com/Enet4/nifti-rs","commit_stats":{"total_commits":276,"total_committers":3,"mean_commits":92.0,"dds":"0.37318840579710144","last_synced_commit":"e1445d4388431522fc33d62fbec492f396f00af2"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enet4%2Fnifti-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enet4%2Fnifti-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enet4%2Fnifti-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enet4%2Fnifti-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Enet4","download_url":"https://codeload.github.com/Enet4/nifti-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221665550,"owners_count":16860277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hacktoberfest","medical-imaging","neuroimaging","nifti","nifti-format","rust"],"created_at":"2024-10-11T02:15:02.776Z","updated_at":"2025-10-25T09:37:33.802Z","avatar_url":"https://github.com/Enet4.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NIFTI-rs \u0026emsp; [![Latest Version](https://img.shields.io/crates/v/nifti.svg)](https://crates.io/crates/nifti) [![Continuous integration status](https://github.com/Enet4/nifti-rs/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/Enet4/nifti-rs/actions/workflows/rust.yml) [![dependency status](https://deps.rs/repo/github/Enet4/nifti-rs/status.svg)](https://deps.rs/repo/github/Enet4/nifti-rs)\n\nThis library is a pure Rust implementation for reading files in the [NIfTI](https://nifti.nimh.nih.gov/nifti-1/) format (more specifically NIfTI-1.1).\n\n## Example\n\nPlease see [the documentation](https://docs.rs/nifti) for more.\n\n```rust\nuse nifti::{NiftiObject, ReaderOptions, NiftiVolume};\n\nlet obj = ReaderOptions::new().read_file(\"myvolume.nii.gz\")?;\n// use obj\nlet header = obj.header();\nlet volume = obj.volume();\nlet dims = volume.dim();\n```\n\nThe library will automatically look for the respective volume when\nspecifying just the header file:\n\n```rust\nuse nifti::{NiftiObject, ReaderOptions};\n\nlet obj = ReaderOptions::new().read_file(\"myvolume.hdr.gz\")?;\n```\n\nWith the `ndarray_volumes` feature (enabled by default),\nyou can also convert a volume to an [`ndarray::Array`] and work from there:\n\n```rust\nlet volume = obj.into_volume().into_ndarray::\u003cf32\u003e();\n```\n\nIn addition, the `nalgebra_affine` feature unlocks the `affine` module,\nfor useful affine transformations.\n\n[`ndarray::Array`]: https://docs.rs/ndarray/0.15.1/ndarray/index.html\n\n## Roadmap\n\nThis library should hopefully fulfil a good number of use cases.\nHowever, not all features of the format are fully available.\nThere are no deadlines for these features, so your help is much appreciated.\nPlease visit the [issue tracker](https://github.com/Enet4/nifti-rs/issues) and [tracker for version 1.0](https://github.com/Enet4/nifti-rs/issues/62).\nIn case something is missing for your use case to work,\nplease find an equivalent issue of file a new one.\nPull requests are also welcome.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenet4%2Fnifti-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenet4%2Fnifti-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenet4%2Fnifti-rs/lists"}