ToDo
with pip
pip install git+ssh://git@github.com/KeKsBoTer/v4dv.git@master
Viewer (jupyter notebook)
from v4dv import viewer
import numpy as np
from matplotlib import pyplot as plt
viewer(
#[T,C,D,W,H]
np.random.rand(1,1,32,32,32),
plt.get_cmap("viridis"),
)
Render Image
from v4dv import felix_cmap_hack, render
colormap = felix_cmap_hack(plt.get_cmap("magma"))
img = render(
# [T,D,H,W]
np.random.rand(2,32,32,32),
colormap,
0.5, # timestep
width=1024,
height=1024,
)