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

setColormapGPU not implemented yet #359

Closed
ssokmen opened this issue Jan 11, 2023 · 2 comments
Closed

setColormapGPU not implemented yet #359

ssokmen opened this issue Jan 11, 2023 · 2 comments

Comments

@ssokmen
Copy link
Contributor

ssokmen commented Jan 11, 2023

Hi, Do u have any progress about using colormap for stackviewport?

@sedghi
Copy link
Member

sedghi commented Jan 11, 2023

Not that way (through stackViewport api), but you can set colormaps manually like this https://github.com/cornerstonejs/cornerstone3D-beta/blob/main/utils/demo/helpers/setPetColorMapTransferFunctionForVolumeActor.js#L5

@ssokmen
Copy link
Contributor Author

ssokmen commented Jan 11, 2023

Thanks for the inspiration. I really appreciate it. Here I am adding a code block for the convenience of other friends who may be interested in it.

let ActorEntry = viewport.getActor(viewport.id);
let actor = ActorEntry.actor;
actor.getProperty().setRGBTransferFunction(0, cfun);
viewport.render();

@ssokmen ssokmen closed this as completed Jan 11, 2023
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

No branches or pull requests

2 participants