Given a setup where we have a folder of 4D (multi-sequence) MR images and a separate folder of labelmaps, we can use the wonderfully flexible DataCollection object as follows:
It bugs out at the patch extraction stage due to having five dimensions. Can we use the channels=True flag to ensure 4D data are loaded the desired way?
Given a setup where we have a folder of 4D (multi-sequence) MR images and a separate folder of labelmaps, we can use the wonderfully flexible
DataCollection
object as follows:However, currently DN assumes that the inputs, due to being 4D, are time-series (seemingly): https://github.com/QTIM-Lab/DeepNeuro/blob/e15acaaa31903fc3b7f6a30faa190ecbd875e4ad/deepneuro/utilities/conversion.py#L48
It bugs out at the patch extraction stage due to having five dimensions. Can we use the
channels=True
flag to ensure 4D data are loaded the desired way?