Adding custom color LUT to Weasis UI

125 views
Skip to first unread message

Bharys J

unread,
Jun 8, 2022, 12:52:29 AM6/8/22
to dcm4che
Hi, 

In Weasis viewer, can we add a custom color LUT to the ones offered by weasis in the dropdown(...NIH, Rainbow1, Rainbow2, ...) . Please refer the pic below. 
We can add a custom color LUT by setting the photometric interpretation but wanted to know if there is a way to add it to the dropdown list as seen in the pictureweasis_inbuilt_lut.png
Thanks

Nicolas Roduit

unread,
Jun 8, 2022, 2:08:01 AM6/8/22
to dcm4che
The LUTs are located in the app/resources directory which can be modified (by adding or removing files).

If you use weasis-pacs-connector to launch Weasis then you can also have your own resources by setting the property "weasis.resources.url" (see in the preferences table)

Bharys J

unread,
Jun 8, 2022, 4:04:00 AM6/8/22
to dcm4che
Thanks, will look into it

Bharys J

unread,
Jun 8, 2022, 9:22:37 AM6/8/22
to dcm4che
LUT's work with float pixel data as well even if the range length of floatpixel array and LUT's are different. I didn't expect it to work with floatpixelarray.  I wanted to know how is the mapping done from float pixel array to LUT table when their range is of different lengths, is it a linear mapping from min-max of floatarray to min-max of LUT?

Nicolas Roduit

unread,
Jun 8, 2022, 10:01:25 AM6/8/22
to dcm4che
Pseudo-color is applied to byte pixel values after all the DICOM W/L transformations (which can be linear or non-linear): Modality LUT -> VOI LUT -> PS LUT 

Bharys J

unread,
Jun 8, 2022, 1:36:57 PM6/8/22
to dcm4che
Thank you
Reply all
Reply to author
Forward
0 new messages