Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH:select dicom subseries scalar volumes by default (Slicer#4860)
* ENH:select dicom subseries scalar volumes by default When there a scalar volume has the option of being broken into subseries by a tag such as AcquisitionNumber or ImageOrientationPatient and there is only such tag a reasonable heuristic is to prefer loading these subseries as volumes rather than trying to load the full series, since the full series is unlikely to be a coherent scalar volume. This change ups the confidence for loadables for which there is one set of subseries loadables. This change also allows a set of loadables that all have the higest confidence to all be selected. This change works well on data that was previously corruped on load and doesn't appear to have an impact otherwise. An example of a dataset that loads better is series 2 from patient PD-1-Lung-00008, study 20090123 in this collection: https://wiki.cancerimagingarchive.net/pages/viewpage.action?pageId=41517500 * ENH: add DICOMUtils.loadByInstanceUID method Sometimes it's useful to store only the instance uid of a slice, for example with a measurement, but even if you know the seriesUID for that instance, it doesn't always map to a specific MRML node, so you may end up loading a full set of nodes corresponding to different subseries when you only needed to load the one with this instance. With this change the loadables are filtered so that only the highest confidence one containing the instance is loaded. * DOC: add comments on loadable confidence handling * ENH: lower subseries confidence make more headroom for other plugins that might have more specific interpretations of this data.
- Loading branch information