Skip to main content

Surface anaLysis And Modeling (Slam)

All Contributors

Build Status Coverage Status

Slam is an open source python package dedicated to the representation of neuroanatomical surfaces stemming from MRI data in the form of triangular meshes and to their processing and analysis. Slam is an extension of Trimesh, an open source python package dedicated to triangular meshes processing.

Main Features

Look at the doc for a complete overview of available features!

  • io: read/write gifti (and nifti) file format

  • generate_parametric_surfaces: generation of parametric surfaces with random sampling

  • geodesics: geodesic distance computation using tvb-gdist, potpourri3d and networkx

  • differential_geometry: several implementations of graph Laplacian (conformal, authalic, FEM...), texture Gradient

  • mapping: several types of mapping between the mesh and a sphere, a disc...

  • distortion: distortion measures between two meshes, for quantitative analysis of mapping properties

  • remeshing: projection of vertex-level information between two meshes based on their spherical representation

  • topology: mesh surgery (boundary indentification, large hole closing)

  • vertex_voronoi: compute the voronoi of each vertex of a mesh, usefull for numerous applications

  • texture: a class to manage properly vertex-level information.

  • plot: extension of pyglet and visbrain viewers to visualize slam objects

News in last release

  • Deep update of the watershed algorithm that impact many aspects, more details coming
  • Acceleration of the watershed algorithm by using potpourri3d for computing geodesic distances
  • Acceleration of the computation of the vertex voronoi that is used in many algorithms

For contributors

Code of conduct

The very first thing to do before contributing is to read our Code of conduct.

Have a look at the github project!

We are using a github project to organize the code development and maintenance: https://github.com/orgs/brain-slam/projects/1

If you are interested in contributing, please first have a look at it and contact us by creating a new issue.

Contributors Installation

Prerequisites

  1. Create an account on Github if you do not already have one
  2. Sign in GitHub and fork the slam GitHub repository
  3. We highly recommend to rely on a (conda) virtual environment as provided by miniconda. See miniconda installation instructions if you do not already have one. Then create a virtual environment by typing the following lines in a terminal:
  conda create -q -n slam python=3.12
  conda activate slam

This creates an empty conda virtual environment with Python 3.8 and basic packages (e.g. pip, setuptools) and make it the default python environment.

Installation

  1. Clone your personal slam fork in your current local directory
    git clone https://github.com/<username>/slam
    
  2. Perform a full slam installation in editable mode
     pip install -e .['dev']
    
  3. Set upstream repository to keep your clone up-to-date
     git remote add upstream https://github.com/brain-slam/slam.git
    

You are now ready to modify slam code and submit a pull request

Dependencies

These dependencies, whether mandatory or optional, are managed automatically and transparently for the user during the installation phase and are listed here for the sake of completeness.

Mandatory

In order to work fine, slam requires:

  • a Python 3.12 installation
  • setuptools
  • pip
  • numpy
  • scipy
  • cython
  • trimesh
  • nibabel
  • networkx
  • potpourri3d

Distance computation (Optional)

tvb-gdist is recommended for geodesic distance/shortest paths computations

Hall of fame

All contributions are of course much welcome! In addition to the global thank you to all contributors to this project, a special big thanks to:

. https://github.com/alexpron and https://github.com/davidmeunier79 for their precious help for setting up continuous integration tools.

. https://github.com/EtienneCmb for his help regarding visualization and Visbrain (https://github.com/EtienneCmb/visbrain).

. https://github.com/aymanesouani for his implementation of a very nice curvature estimation technique.

. https://github.com/Anthys for implementing the curvature decomposition and many unitests

. to be continued...

Contributors ✨

Thanks goes to these wonderful people (emoji key):


alexpron

🚧 📆 🤔 💻

JulienLefevreMars

💻 📖 💡 🤔 ⚠️

Tianqi SONG

💻 💡 🤔

Etienne Combrisson

💻 🔧

This project follows the all-contributors specification. Contributions of any kind welcome!

Download files

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

Source Distribution

brain_slam-0.1.3.tar.gz (66.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brain_slam-0.1.3-py3-none-any.whl (76.6 kB view details)

Uploaded Python 3

File details

Details for the file brain_slam-0.1.3.tar.gz.

File metadata

  • Download URL: brain_slam-0.1.3.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for brain_slam-0.1.3.tar.gz
Algorithm Hash digest
SHA256 20b75c605c4f4329596fbe9844ce03d72ddafd760b5763f216b799495145fc05
MD5 e9215767ca1a583f443314480af2654f
BLAKE2b-256 86b42fa16d005d99896acc477e39f3ad7d8ccb5536efe78019275cf317569640

See more details on using hashes here.

File details

Details for the file brain_slam-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: brain_slam-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 76.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for brain_slam-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 46774a92be86ff48b8b04ea09b17aca71f949e87ee7b1758bbcb9bd04e9bfee6
MD5 2b170be5bd19746db02e7e113680571b
BLAKE2b-256 391943bba23fd67c95f896e9b8e0bedf659fa78ac97afb7245e6516e41a8ea46

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page