Skip to content

Conversation

@leandervaneekelen
Copy link

Hi Guillaume and co,

I frequently work with WSIs scanned as DICOMs. This PR implements support for this format by wrapping a reader around wsidicom in a similar way to #150 which was written for SPDC.

One caveat is that DICOMs break away from the typical "monolithic" file format such as a .tif or a .svs file, instead opting for being contained in a folder with an arbitrary amount of .dcm files. This necessitates the existence of a small util function _is_dicom_folder. This doesn't fit the typical design pattern of checking the extension of a file to determine its file type, and I was unsure whether or not you'd like a bigillion _is_dicom_folder calls in collect_valid_slides for batched processing. Let me know what you think.


self.job_dir = job_dir
self.wsi_source = wsi_source
# TODO: should I add DICOM here as well?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we can include dicom here too.

@guillaumejaume
Copy link
Contributor

Hi @leandervaneekelen, thx for the PR! I thought openslide was supporting DICOM (https://forum.image.sc/t/openslide-4-0-0-released/87323)? Or only some of the DICOM slides? Can you shared a DICOM slide so i can test on my end. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants