🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@niivue/minc-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@niivue/minc-loader

A MINC voxel image loader to be used with the NiiVue useLoader method

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

minc-loader

The minc-loader is a NiiVue plugin that converts MINC format .mnc volumes into NIfTI volumes. It adapts code from brainbrowser library to read .mnc files (stored in both the older NetCDF and the more recent HDF5 structures).

Local Development

To illustrate this library, minc2nii.js is a node.js converter that can be run from the command line. The command npm run test runs some regression tests. The command npm run cli converts a MINC file to NIfTI from the command line. Finally, the command node ./src/minc2nii.js /path/to/minc/minc.mnc allows you to specify specific files to convert.

git clone git@github.com:rordenlab/minc-loader.git
cd minc-loader
npm install
npm run test
npm run cli
node ./src/minc2nii.js ./tests/testData/ax.mnc

Local Browser Development

You can also embed this loader into a hot-reloadable NiiVue web page to evaluate integration:

git clone git@github.com:rordenlab/minc-loader.git
cd minc-loader
npm install
npm run dev
  • mnc2nii.py provides a Python nibabel conversion script and sample images.
  • brainbrowser code for hdf5 and netcdf reading is used here.
  • nii2mnc command line tool to convert NIfTI images to MINC (e.g. Original->In)
  • mnc2nii reference command line tool to convert MINC images to NIfTI (e.g. In->Ref)
  • mincconvert command line tool for converting between MINC1 (netcdf) and MINC2 (HDF5) formats.
  • minc2.py nibabel Python class for reading MINC2 (HDF5) images.
  • minc1.py nibabel Python class for reading MINC1 (netcdf) images.
  • minc_to_nifti.py is a minimal nibabel wrapper for converting MINC images to NIfTI, but unlike mnc2nii.py it does not preserve details such as the spatial transfomation affine matrix.

Keywords

minc

FAQs

Package last updated on 15 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts