imi-bigpicture / wsidicom

Python package for reading DICOM WSI file sets.
Apache License 2.0
34 stars 7 forks source link

DICOM Metadata needed accoding to MSMdad #172

Closed 11777840 closed 2 weeks ago

11777840 commented 2 weeks ago

Hi Erik,

when using one of these calls, the extracted metadata do not include image_size or base_layer_tile_size. Is there a possibilty to extract these values with wsidicom?

with WsiDicom.open(folder_path) as wsi: metadata = wsi.levels.base_level.datasets[0]

metadata = wsi.metadata

If not it would be to great to include the function for all values mandatory in MSMdad needed from the converted DICOM.

Thanks!

erikogabrielsson commented 2 weeks ago

@11777840 Here is an example from bigpicture-slidetap on how to use the dataset and metadata to create bigpicture image metadata. Let me know if you dont have access to the repo: https://github.com/imi-bigpicture/bigpicture-slidetap/blob/main/bigpicture_slidetap/processors/image_pre_processor.py#L71

11777840 commented 2 weeks ago

Thanks, worked out fine!

erikogabrielsson commented 2 weeks ago

Perfect!