Skip to main content

Python bindings of the gems segmentation package.

Project description

charm-gems

PyPI version Linux Build MacOS Build Windows Build

This repository contains the gems C++ code and python bindings used in Freesurfer's Sequence-Adaptive Multimodal SEGmentation (SAMSEG) (Puonti et al., NeuroImage, 2016) and in SimNIBS 4.0 Complete Head Anatomy Reconstruction Method (CHARM) (Puonti et al., NeuroImage, 2020) to create individualized head models for electric field simulations.

Installation

The compiled charm-gems library is available via pip ≥ 19.3, for python 3.6, 3.7 and 3.8

pip install --upgrade pip
pip install charm-gems

Afterwards the package can be imported by calling

import charm_gems as gems

Manual Installation

Requirements

Preparation

This repository uses submodules. To start it, use

git submodule init
git submodule update

Linux/MacOS

  1. Build ITK
mkdir ITK-build
cd ITK-build
cmake \
    -DBUILD_SHARED_LIBS=OFF \
    -DBUILD_TESTING=OFF \
    -DBUILD_EXAMPLES=OFF \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=../ITK-install \
    ../ITK
make install
cd ..
  1. Install charm-gems
ITK_DIR=ITK-install python setup.py install

Windows (Tested on Visual Studio 2019)

  1. Build ITK
md ITK-build
cd ITK-build
cmake.exe ^
    -DBUILD_SHARED_LIBS=OFF ^
    -DBUILD_TESTING=OFF ^
    -DBUILD_EXAMPLES=OFF ^
    -DCMAKE_BUILD_TYPE=Release ^
    -DCMAKE_INSTALL_PREFIX=..\ITK-install ^
    ..\ITK
cmake --build . --config Release --target Install
cd ..
  1. Install charm-gems
set ITK_DIR=ITK-install
python setup.py install

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

charm_gems-1.3.3-cp311-cp311-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.11 Windows x86-64

charm_gems-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

charm_gems-1.3.3-cp311-cp311-macosx_11_0_universal2.whl (4.8 MB view details)

Uploaded CPython 3.11 macOS 11.0+ universal2 (ARM64, x86-64)

charm_gems-1.3.3-cp310-cp310-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

charm_gems-1.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

charm_gems-1.3.3-cp310-cp310-macosx_12_0_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

charm_gems-1.3.3-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

charm_gems-1.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

charm_gems-1.3.3-cp39-cp39-macosx_12_0_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

charm_gems-1.3.3-cp38-cp38-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

charm_gems-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

charm_gems-1.3.3-cp38-cp38-macosx_12_0_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

File details

Details for the file charm_gems-1.3.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8bb2cfe5aac2d121af375f4b10fe6268ef79d67b960208a9cf811c7fab6c295b
MD5 02b0419f6daa51f5413a2f720b9d1a9a
BLAKE2b-256 59f65854a5076744e3f49ccb9c089918aa3a539a4e4789183ca1f3f60cb96d96

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f758f3ac57ca3abd33653d198d503c51e8eded76617e413761bf7c35cbaca0b
MD5 51ecd3b71453e357d88e960367858182
BLAKE2b-256 2a25241c17a087a1ecde8c4852b37b57fbcb631f4e9a117257321da42faf277f

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp311-cp311-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp311-cp311-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 bb4490a70ad6a68228d5c9a9eb2ad39cb667284b0c70d98a7bce5d8d31314c5e
MD5 8dbd999a969c24417b3f8596b2330204
BLAKE2b-256 1d0536f746ea3a77a72806003bdfc649c4b33c1cf1e786a61e31e91dfec0477c

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 84c0c75330f171de0ae2a05b87465248677cc8807f6c34a99379a5c872a98a88
MD5 a410bec24924d3b22afd44ad51863d69
BLAKE2b-256 09cba6d94d7156479846aeaaded7966a7219b94d5edee5ba1e4e36e45c1ab72d

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c76faf1881fda89ebc7d6313ca809e878e4b2e093bcba153187115cf28ac1de0
MD5 813cf7bc86d3099d5306c54a19ecc400
BLAKE2b-256 e5fc1980f980c45c613ba068b869302253cad8d0f56c306f31551a1c245f7847

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7aaa52d7bcf458f1ee0499c1887fc247f3efb97896ce6af620e909eb4505c777
MD5 75ea45cdb63f5140ff21e2d409151dac
BLAKE2b-256 3c967fa8bc78ffff37dd99d81de163f64c931d3719f13b3a3123dbf119ce4d82

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 15da883096d329e895cc769e0cf9070efcf7a949d5b601f273793ed05d4daa19
MD5 9dc50eb8d32866072a59bc31184af633
BLAKE2b-256 ec41e48e5e9a4b8a81fd19fa11250981d12fb5e802b1129b0abbb481cb1545d8

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 083f1b3d6362efc90b3a4ad795fe041c9ee52058490b32a35fb2e32af42dba7c
MD5 aa205d1d594e646c8e51970c291dbfb7
BLAKE2b-256 161cd6c761a530376be9ddf193fbef0973da86d6862cb441d02394bce8f07892

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 c080d1e11becaaacc5ef855bd0fe8b8e041dc0b65c61272d34aad64485b38805
MD5 ec67327b58de161ae3232d4515d2becf
BLAKE2b-256 58f16ed2bffa45f3ab510e7a2a1a75e03c9d9c77cf8a7fc6c5edca5d004b517e

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 25ec6b9403b75ebbd06e2767f314d7ba6bc57778bccd8a81bd7f0b550f84e8d0
MD5 3aef9ee07224c94e08df83805060c2bb
BLAKE2b-256 7cac8b814f1e67edd3840273d51a7b46c1159ee7a1ffcf92a89e8df5eb88e1d6

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e86a8ea9b6a1f7e3feef9534bc7ce1908142381cd479a17cdd824f97f8cf6976
MD5 bbc07a239bc8f1ff13be005b989d0316
BLAKE2b-256 ef314af2ef0d2463913efcd10a0a42eac03069c1a9b963153206f0af12b6c24a

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.3-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.3-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0c1398129c835e8b70e27dfd5fce66a737250dd9ca76328de0175bad2573c8da
MD5 f8e839721cb81d54c23993c01da87012
BLAKE2b-256 6942c311350f5c43121b5a2440912845190d7a59da829452c1d594b2b9d1a07b

See more details on using hashes here.

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