Papaya icon indicating copy to clipboard operation
Papaya copied to clipboard

Negative image

Open joweste opened this issue 3 years ago • 1 comments

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

joweste avatar Jul 16 '22 14:07 joweste

@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.

niks2060 avatar Mar 23 '24 16:03 niks2060