smujiang / WSI2DICOM

Simple prototype of converting whole slide image (WSI) to multiframe DICOM images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grayscale/low resolution problem

halynyu opened this issue · comments

commented

Hi,
I converted the example file (CMU-1-JP2K-33005.svs) into a dicom file with this code. Unfortunately, however, when I checked the converted dicom file, I found that the resolution was very low and turned grayscale.
Below is a part of instance_1.
The second picture below is an error that occurred as my code progressed. Do you happen to know a solution?

스크린샷_20230220_072842
스크린샷_20230220_073639

Thanks for noticing our tool.
I'm not able to tell where the problem is as I don't have your code. It seems to me that the original image may have more than 3 channels saved in the file, that's why the converted image looks like gray-scale and fuzzy. Did you checked the data type (int8/int16 etc) of your image? Did you noticed the "sRGB" in your logging?Did you checked the data type (int8/int16 etc) of your image?