Bug 30 - Bad colorspace if using OpenSlide
Summary: Bad colorspace if using OpenSlide
Status: RESOLVED FIXED
Alias: None
Product: Orthanc
Classification: Unclassified
Component: Whole-slide imaging (show other bugs)
Version: unspecified
Hardware: All All
: --- normal
Assignee: Sébastien Jodogne
URL:
Depends on:
Blocks:
 
Reported: 2020-06-29 15:11 CEST by Sébastien Jodogne
Modified: 2020-06-29 15:19 CEST (History)
0 users

See Also:


Attachments
unnamed.jpg (207.99 KB, image/jpeg)
2020-06-29 15:18 CEST, Sébastien Jodogne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Jodogne 2020-06-29 15:11:54 CEST
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2017-01-20.12:12:15]

From abdou.matthew@gmail.com on 2016-01-19:

After converting whole slide image files with the DICOMizer command line tool, the slide viewed in Orthanc's WSI web viewer (and those seen on the WSI demo site) are a deep purple instead of the usual H&E colors (pink/red & purple/blue). See attached photo (left side is normal H&E color of original WSI file, right side shows DICOMizer converted slide color interpretation).

This color interpretation is not accurate.

I believe this is due to the (PhotometricInterpretation) set as YBR_FULL_422 instead of RBG. I have tried using multiple (including RGB) icc color profiles with the DICOMizer, however all converted slides have the same deep purple result.

Is there a way to change the default DICOMizer conversion to use an RGB color interpretation/representation? How can I achieve accuracte color representation with the DICOMizer command line tool? Otherwise all DICOMizer converted slides will not be usable from a pathologist's standpoint. Thank you!

Matthew
Comment 1 Sébastien Jodogne 2020-06-29 15:18:19 CEST
Created attachment 85 [details]
unnamed.jpg
Comment 2 Sébastien Jodogne 2020-06-29 15:19:29 CEST
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2017-01-20.12:17:07]

The problem was that the "R" and the "B" color channels were swapped when decoding images using OpenSlide.

This is fixed by the following changelist:
https://hg.orthanc-server.com/orthanc-wsi/changeset/16b8e1cc9bbfeec5c2cd4e601e6259edec5a0d85