Skip to main content

General-purpose real-time 3D visualization

Project description

CarnaPy

The aim of this package is to provide real-time 3D visualization in Python for specifically, but not limited to, biomedical data. The library is based on Carna.

See examples/kalinin2018.ipynb for an example.

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge


Contents


1. Limitations

  • Only 8bit and 16bit volume data are supported at the moment.
  • DRR renderings are not exposed to Python yet.
  • Build process is currently limited to Linux-based systems.

2. Dependencies

Using the library requires the following dependencies:

  • numpy ≥ 1.16
  • EGL driver support
  • OpenGL 3.3
  • Python ≥ 3.7

The following dependencies must be satisfied for the build process:

In addition, the following dependencies are required to run the test suite:


3. Installation

The easiest way to install and use the library is to use one of the binary Conda packages:

conda install -c kostrykin carnapy

Conda packages are available for Python 3.7–3.9.


4. Build instructions

Assuming you are using a recent version of Ubuntu:

sudo apt-get -qq install libegl1-mesa-dev libboost-iostreams-dev

Create and activate a Conda environment to work in, then:

conda install -c conda-forge pybind11

Grab a recent version of Eigen, unpack it, and tell CMake where it is located:

wget https://gitlab.com/libeigen/eigen/-/archive/3.2.10/eigen-3.2.10.tar.gz
tar -vzxf eigen-3.2.10.tar.gz -C /tmp/
export CMAKE_PREFIX_PATH="/tmp/eigen-3.2.10:$CMAKE_PREFIX_PATH"

If you have not already, download, build, and install Carna:

git clone git@github.com:kostrykin/Carna.git build_carna
cd build_carna
sh linux_build.sh

Now it is time to build, package, and install CarnaPy:

cd ..
python setup.py build
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 Distribution

CarnaPy-0.1.6.tar.gz (741.3 kB view details)

Uploaded Source

File details

Details for the file CarnaPy-0.1.6.tar.gz.

File metadata

  • Download URL: CarnaPy-0.1.6.tar.gz
  • Upload date:
  • Size: 741.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for CarnaPy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3d252815bf48c575d9a6cf9e4614e32c2ff60ad466442056d9650a79fbc9f85d
MD5 5e56d59f7842f97fb7ff146b8e1f0b39
BLAKE2b-256 86aa0158674761f185934a892d367a408303158217cc423ab44398bdc62ed199

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