VolumeViewer#

class cdiutils.interactive.VolumeViewer(*args, **kwargs)#

Bases: object

The VolumeViewer class provides an interactive 3D isosurface viewer for volumetric data using Plotly.

__init__(*args, **kwargs)#

Examples#

Interactive 3D visualisation:

from cdiutils.interactive import VolumeViewer
import numpy as np

# Create viewer with data
viewer = VolumeViewer(
    data=reconstructed_object,
    voxel_size=(10e-9, 10e-9, 10e-9)  # in metres
)

# Show interactive widget in notebook
viewer.show()

See Also#

cdiutils.plot.plot_volume_slices() : 2D slice plotting CXIExplorer : CXI file explorer