Skip to main content

Brain imaging surface mesh file format converter

Project description

mni2mz3

crates.io MIT License test codecov

Converts a file from MNI polygonal surface mesh format (.obj*) or vertex-wise data (e.g. curvature, cortical thickness, *.txt) to Surf-Ice MZ3 (.mz3). Useful for visualizing surfaces using Surf-Ice or NiiVue.

[!WARNING] *Not to be confused with Wavefront .obj, which is a different spec but with the same file extension.

Installation

TODO

Usage

# convert mesh
mni2mz3 surface_81920.obj surface.mz3

# convert data
mni2mz3 thickness.txt thickness.mz3

Details

  • Output file will be gzip compressed.
  • For surfaces, only triangle meshes are supported.
  • For data, only 32-bit single-precision "float" is supported.

Testing

It is recommended to install cargo-nextest.

cargo nextest run

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mni2mz3-0.1.0rc2.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distributions

mni2mz3-0.1.0rc2-py3-none-win_amd64.whl (155.5 kB view hashes)

Uploaded Python 3 Windows x86-64

mni2mz3-0.1.0rc2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (239.9 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

mni2mz3-0.1.0rc2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (233.3 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l

mni2mz3-0.1.0rc2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (232.1 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

mni2mz3-0.1.0rc2-py3-none-macosx_11_0_arm64.whl (209.8 kB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

mni2mz3-0.1.0rc2-py3-none-macosx_10_7_x86_64.whl (221.2 kB view hashes)

Uploaded Python 3 macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page