Skip to main content

Visualize 3D volume data.

Project description

visualize_volume

Visualize 3D volume data.

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.2.tar.gz (4.2 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.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visualize_volume-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for visualize_volume-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d03fe2e01f3f08223a617c061aff969e5a29809d2c95a807de9cc77cb82c4ca8
MD5 16e4feb1b7e461bbbd1cab0297ab1f98
BLAKE2b-256 bc84219c258d5a20fed92775c6570efbfabdaf23f9aaa71ad7f8806c3273c028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for visualize_volume-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39c7f05afdedaa7f88d888ba3ba355530f9fbaca7e29b5f5cf6f336f8c3be6b0
MD5 a2101bd04091e7c82ef1e7b30b4920b8
BLAKE2b-256 f1bf4508233492301d1425584a9ef2e83758cc2e5112f5af7fc1281919fa9407

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