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.1.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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visualize_volume-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 de4afea13a2993e63c506fa9468592d009e75c49348aaa9f03df941fce154a02
MD5 caa1a0820f9e12efe0ad8f56a81ae89c
BLAKE2b-256 33f11258dcb36a317755aec1084b8341f1f7417d35f7c20359975a388181727c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for visualize_volume-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90eb320aa2ac90531f17f2f0ca8d3e67ce8c188f38c541b446be03cf0be2acba
MD5 8e20f14a3d4242253bd0ff88ec90d775
BLAKE2b-256 416d54e987ad4c5c4c1956d2a24401d323259505fc064f37af3127883ef35683

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