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.1-cp311-cp311-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.11 Windows x86-64

charm_gems-1.3.1-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.1-cp310-cp310-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

charm_gems-1.3.1-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.1-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

charm_gems-1.3.1-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.1-cp39-cp39-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

charm_gems-1.3.1-cp38-cp38-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

charm_gems-1.3.1-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.1-cp38-cp38-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

charm_gems-1.3.1-cp37-cp37m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

charm_gems-1.3.1-cp37-cp37m-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

charm_gems-1.3.1-cp36-cp36m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

charm_gems-1.3.1-cp36-cp36m-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 952720bcf301b4c29b2896982c870d4d192863bdae043c3e428c47544816b751
MD5 501a53432b469353bee6dfe200c66031
BLAKE2b-256 547c11c3237e3f944c6860703dcca9e9724abcc654aaa6352313e995ec222a99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aaa1a7a241a860f9266f0a2a2b4e5ce4a0e519e3afdf615eb97a9eb19bd5cd0c
MD5 137ee7af8c49f06c9adbc60b0040172c
BLAKE2b-256 6e74ece3bbc5be1d6834bef808d4d6a42408c8f46df6fdb6e8fe37fc27dd9c6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a5923b81fd88ac483892096fe91bcf57abc93d6ca72f43b12ca18470af57abd7
MD5 04519f83311c82d60797fe23132becff
BLAKE2b-256 08decfe713ef0ef812ae84bffc67f1ee3eb6a061967b76cd3648a97d85ed6bca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e786de08e769973c437d6632e1d763d2b99cd58464d2dcd92dfb2c3eb3063758
MD5 ac9fe048c906a6dc641da11840eb9482
BLAKE2b-256 b65c4d8a18ed1a61588e149aed44b0082e330398487bc7eced930aaaebb518d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4088a758dd0a95a11ab098535a3defe00b718a4a83b522a2d7e59f8997e4119e
MD5 828a5e679ec4a76ecf9378d594791532
BLAKE2b-256 ab1d74f209e7da1ea764f3e4e3be095431815828ad5ac27c99ff12f8eb794d92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 11527646953ff359120c6ad64a4bb83da158cb35c116a523db0f193271ff41d4
MD5 98221587083f68c96ef8fc1a644f80f5
BLAKE2b-256 f132c3a9de5184ebff43fd5ddfc0b2bd078fe8244c27dad2236b9657ead3b67e

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 93f967cb4b78ab2820ac726cb82a1510378a1a87ead6f44368786d81a80b84df
MD5 ee9091954eaca5278990d260d03f5731
BLAKE2b-256 1c1c478041a53a8227c2c7b25042b4989e7b76cb71e69b9a72cdc7543ca0027c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 eaf1eb0e6f0a866f8e14411d07c216320a0b52a020cb01ff873619f219dea69e
MD5 a07ccc5c5334a433ae238661e81afce7
BLAKE2b-256 b31caddf325529440cd09e001739073fb5919b8020a6b3129616c3479bfd6f2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d02389c0d7c0d0c9bd5cf8766fa1de814f0fdc732875dd9a5a96b638a0cbb4d
MD5 beaa3c18259d14e1247fd4b50a407b79
BLAKE2b-256 5156751819dd04ebe35c388a377350e531f16607114bfa1c63cda230d86a7d39

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bc20e2c26cc5c7f5a19d7087d54020e9ed579133e91344e7ac6b1748b682d274
MD5 f139c84d3f251e4160f95c08d4359d84
BLAKE2b-256 33552fb48dc434857b37a59ad2cbbcc59b9cfa7a28c39d3da84bb8ee44298674

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.1-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 56a412b687e2f7a02c109fae8e368eed3bdfed815aa0635b26c44ff4552c6c20
MD5 60cc7c419b773b63b98e831c3109db2a
BLAKE2b-256 85793d2fa606dd080d920d497e9abad52dce8f317c238d5de04624e6491a7b23

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b8c41a7d1294a7d520fd57ff381861c0eed3619933440ee57d199956956a7209
MD5 4462fb05bfebe30f9eedbd7531156038
BLAKE2b-256 edd55e340c234877f25ee893e0de1b490a442127298cfa3aca0925ff64cc4568

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.1-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4a5b877f44314431850994dd90ed1605e8d4eaba2c719d451b7556806482376c
MD5 db5720edd81fa60db2ca455eb917acc7
BLAKE2b-256 74101c6a863f288f7208bf349156250cf598d06ada753e4561a38c6d90879f94

See more details on using hashes here.

File details

Details for the file charm_gems-1.3.1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for charm_gems-1.3.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7f533201e6919b5bc50902e81cd9b2cd015d9dc552d1107911d807bdaf120d9e
MD5 7c589f61d121292c6ebcb8a5dfd59477
BLAKE2b-256 64fa65df80f8383bbaeb27d70a19195300f7b145f77b4fc9f368054b45aaae99

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