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

Negative image #210

Open
joweste opened this issue Jul 16, 2022 · 1 comment
Open

Negative image #210

joweste opened this issue Jul 16, 2022 · 1 comment

Comments

@joweste
Copy link

joweste commented Jul 16, 2022

Hi,
How can I get a negative of the dicom image showing in the viewer container?

@niks2060
Copy link
Contributor

@joweste I think you want inverted images. Refer how you can implement ColorTable and add flowing as data.
Sample code
papaya.viewer.ColorTable.TABLE_GRAYSCALE = {"name": "Grayscale", "data": [[0, 0, 0, 0], [1, 1, 1, 1]], "gradation": true};

and value need to be added as data : [[0, 1, 1, 1], [1, 0, 0, 0]]

This will be added in next checkin that I am going to do.

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