imi-bigpicture / wsidicomizer

Python library for converting WSI files to DICOM
Apache License 2.0
60 stars 8 forks source link

Do color correction during conversion. #24

Closed kmuw closed 9 months ago

kmuw commented 2 years ago

Some file formats (e.g. mrxs) needs to be converted lossy, since the WSIs consist of overlapping JPG images which are stitched and blended at their seams. Thus, additional processing steps (e.g. color normalization) could be incorporated during this conversion. Color calibration slides are being used, from which color profiles for each scanner could be generated to facilitate this step.

jesper-molin commented 2 years ago

This would indeed remove some lossyness from the whole process if the output color space is known. However, is it known in BigPicture? I can think about three use cases:

Implementation-wise this is straight forward and could be done in Pillow, giving it two ICC profiles, one for the input space from a color calibration slide and one for the output space.

erikogabrielsson commented 9 months ago

Not sure if it is really better do to color conversion on the image files rather than supplying a color profile? Closing for now due to no progress.