Skip to content

feat(io): filter DICOM series by SOP class UID

Didier WECKMANN requested to merge dicom-reader-filter into dev

Description

Enhance the DICOM "type" filtering (image/model/report/fiducial) to allow specifying a list of SOP class uids.

Also fixed a nasty bug when unsupported DICOM (for example, DICOMs that don't have pixel data) were scanned, there were still added to the list of DICOM to read, and the reader would throw unexpected exceptions.

How to test it?

You can directly call

// reader is a sight::io::dicom::Reader::sptr
reader->setFilters(
        {
            sight::data::dicom::sop::Keyword::CTImageStorage,
            sight::data::dicom::sop::Keyword::EnhancedCTImageStorage
        });

Or use sopFilter="1.2.840.10008.5.1.4.1.1.2" when configuring module::io::dicom::SReader (See class documentation)

Edited by Didier WECKMANN

Merge request reports