https://github.com/jina-ai/executor-image-niireader
https://github.com/jina-ai/executor-image-niireader
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jina-ai/executor-image-niireader
- Owner: jina-ai
- Created: 2021-10-19T11:36:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-09T13:35:27.000Z (over 3 years ago)
- Last Synced: 2025-03-07T03:46:28.893Z (7 months ago)
- Language: Python
- Size: 348 KB
- Stars: 2
- Watchers: 25
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NiiReader
The `NiiReader` [executor](https://docs.jina.ai/fundamentals/executor/) loads medical images such as fMRI available in a common medical and neuroimaging file format, `NIfTI-1` or `NIfTI-2` with extension `.nii` or `.nii.gz`, into Jina's [`Document`](https://docs.jina.ai/fundamentals/document/) type.
[`NIfTI`](https://nifti.nimh.nih.gov/) files are used very commonly in imaging informatics for neuroscience and even neuroradiology research.
The executor loads the images using the [`Nibabel`](https://nipy.org/nibabel/) library and stores the image in the `blob` attribute of the `Document` as an `ndarray`.
File with extension `.nii` `.nii.gz` is currently supported.