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

Uploaded Python 3

File details

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

File metadata

  • Download URL: visualize_volume-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b93816b0541235f89ebd8182e919f940e28fdf4c97a58eac6513b08fd82e2fad
MD5 f048770512e91f05ae4965d7afd5ff74
BLAKE2b-256 1a9788e1ef7315e4ff36109d2ed5aa450efd691598aaee507401c9c38ed3d2d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for visualize_volume-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e106a1c8861c71eadae481559d7cf693c200653059655970bacfc560b55c6c93
MD5 5890af431d8a9f2cb9866d6f14f58d7b
BLAKE2b-256 fe8b9e8a9e3c5f12cad6438b0f1c7785c596500b07ea238bb84ee1ac61e361d9

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