Skip to main content

Visualize 3D volume data.

Project description

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: visualize_volume-0.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6044d6c71e9bbb56fc955c0a3d66dc364f95edf890387bacaec1d8c1935133b0
MD5 fbd0d54173faad4c870290b05235ed35
BLAKE2b-256 6d30e970a88e74915d8dba0869514e1ec5265dffe084dd5efd9610ea4b58d801

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for visualize_volume-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a038db15024f30d6e7466c9ea5dc3cc3f4b8e9e322a93b378316f792ff27837
MD5 163f4a3df07ba445f071a41253856964
BLAKE2b-256 ca6d950e3292df0d9f8d58d193f73c094b805e0760606abd108b159ae6c323bd

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