Skip to main content

Visualize 3D volume data.

Project description

visualize_volume

Visualize 3D volume data.

GitHub project: https://github.com/GGN-2015/visualize_volume

Installation

pip install visualize_volume

Usage

import visualize_volume
data3d = visualize_volume.create_centered_cube_3d((64, 64, 64), 24)
visualize_volume.visualize_volume(data3d) # you can fill in your numpy data

Default Values

Argument value_rgba_color_map gives the map from data value to the color (RGBA).

def visualize_volume(data: np.ndarray, 
    value_rgba_color_map=[
        (-5.0, 0.0, 0.0,   0.8, 0.9), # Dark blue
        (-4.0, 0.5, 0.0,   0.5, 0.9), # Purple
        (-3.0, 1.0, 0.0,   1.0, 0.9), # Magenta
        (-2.0, 0.0, 1.0,   1.0, 0.9), # Cyan
        (-1.0, 0.0, 0.8,   0.0, 0.9), # Dark green
        ( 0.0, 0.0, 0.0,   0.0, 0.0), # Transparent
        ( 1.0, 1.0, 0.0,   0.0, 0.9), # Red
        ( 2.0, 1.0, 0.843, 0.0, 0.9), # Gold
    ], 
    back_ground_color=(0.1, 0.2, 0.3), # Dark slate blue background
    back_ground_alpha=1.0
): ...

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

visualize_volume-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

visualize_volume-0.0.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file visualize_volume-0.0.4.tar.gz.

File metadata

  • Download URL: visualize_volume-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for visualize_volume-0.0.4.tar.gz
Algorithm Hash digest
SHA256 974b3268a5691c93e0506adb663508467e87d82c3374826fb15573a1a45764b9
MD5 f647e8c7c88a5a71d76489e8f13601ed
BLAKE2b-256 679410be389f6dad7f1ce8fe62720bbcbbe8f757e848a9fdc0b2e24c5c6dc038

See more details on using hashes here.

File details

Details for the file visualize_volume-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for visualize_volume-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62456c25ee7278739d73849c72d15c8170fa6a0c4b644e78bb573d3eb955ddc5
MD5 c3320e459d227310c8b4703999c2ef98
BLAKE2b-256 0bd3de6be34e553e6cf7e2f8005d00aebc5b4f1740612cc134b237d1d0fcfeaf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page