Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: discrete transfer functions #439

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maartenbreddels
Copy link
Collaborator

Maps integer data to a single color, and gives a dropdown to select which layers to show
Example usage:

ipv.figure()

light = ipv.light_ambient(intensity=0.4);
ipv.light_hemisphere(intensity=1);
tf = ipv.transfer_function_discrete(2, labels=["gap", "solid"], enabled=[False, True], colors=["#ff0000", "#00ff00"])

volume = ipv.volshow(solid, tf=tf)
ipv.show()

discrete-transfer-function

@maartenbreddels maartenbreddels force-pushed the feat_discrete_transfer_function branch 2 times, most recently from e0fa972 to 1e71b93 Compare July 7, 2023 14:23
@maartenbreddels maartenbreddels force-pushed the feat_discrete_transfer_function branch from 1e71b93 to 8664ea5 Compare July 7, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant