libdicom is a C library and a set of command-line tools for reading DICOM WSI files.