Skip to content

Commit f991351

Browse files
committed
ENH: Remove redundant subvolume splitting
The new image position subvolume selection is more robust than splitting based on bvalue. In well defined simple dicom, the splitting on bvalue elments is redundant an unnecessary. In complex dicom datasets where multiple subvolumes have the same bvalue the previous implementation is insufficient.
1 parent 2556482 commit f991351

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/dcm_classifier/study_processing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,6 @@ def __identify_single_volumes(
327327
namesGenerator.SetUseSeriesDetails(True)
328328
namesGenerator.SetLoadPrivateTags(True)
329329
namesGenerator.SetRecursive(True)
330-
for (
331-
bvalue_restrictions
332-
) in (
333-
ProcessOneDicomStudyToVolumesMappingBase.series_restrictions_list_dwi_subvolumes
334-
):
335-
namesGenerator.AddSeriesRestriction(bvalue_restrictions)
336330
# namesGenerator.AddSeriesRestriction("0008|0021") # Date restriction
337331
# namesGenerator.AddSeriesRestriction("0020|0013") # For testing, SeriesInstance results in images with 1 value
338332
namesGenerator.SetGlobalWarningDisplay(False)

0 commit comments

Comments
 (0)