跳转到主要内容

gems分割包的Python绑定。

项目描述

charm-gems

PyPI version Linux Build MacOS Build Windows Build

此存储库包含用于Freesurfer的Sequence-Adaptive Multimodal SEGmentation(SAMSEG)和SimNIBS 4.0 Complete Head Anatomy Reconstruction Method(CHARM)中创建个体头部模型的gems C++代码和Python绑定。

安装

编译的charm-gems库可通过pip ≥ 19.3获取,支持python 3.6, 3.7和3.8

pip install --upgrade pip
pip install charm-gems

之后,可以通过调用以下命令导入包

import charm_gems as gems

手动安装

要求

准备

此存储库使用子模块。要启动它,请使用以下命令

git submodule init
git submodule update

Linux/MacOS

  1. 构建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. 安装charm-gems
ITK_DIR=ITK-install python setup.py install

Windows(已在Visual Studio 2019上测试)

  1. 构建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. 安装charm-gems
set ITK_DIR=ITK-install
python setup.py install

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。

源代码分发

本版本没有可用的源代码分发文件。请参阅 生成分发存档的教程

构建分发

charm_gems-1.3.3-cp311-cp311-win_amd64.whl (2.9 MB 查看哈希值)

上传时间 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 查看哈希值)

上传时间 CPython 3.11 manylinux: glibc 2.17+ x86-64

charm_gems-1.3.3-cp311-cp311-macosx_11_0_universal2.whl (4.8 MB 查看哈希值)

上传时间 CPython 3.11 macOS 11.0+ universal2 (ARM64, x86-64)

charm_gems-1.3.3-cp310-cp310-win_amd64.whl (2.9 MB 查看哈希值)

上传时间 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 查看哈希值)

上传时间 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 查看哈希值)

上传时间 CPython 3.10 macOS 12.0+ x86-64

charm_gems-1.3.3-cp39-cp39-win_amd64.whl (2.8 MB 查看哈希值)

上传时间 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 查看哈希值)

上传时间 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 查看哈希值)

上传时间 CPython 3.9 macOS 12.0+ x86-64

charm_gems-1.3.3-cp38-cp38-win_amd64.whl (2.9 MB 查看哈希值)

上传于 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 查看哈希值)

上传于 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 查看哈希值)

上传于 CPython 3.8 macOS 12.0+ x86-64

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面