QMRITools`
QMRITools`

GetTrainData

GetTrainData[data,batchsize,patch]

creates a training batch of size batchsize with patchsize patch. The input data can be out of memory in the form of a list of "*wxf" files that contain the data, segmentation and voxel size or a list of "*.nii" files in the form {{"data.nii", "segmentation.nii"}..}. The input data can be in memory in a list in the form {{data, segmentation, vox}..}

GetTrainData[data,batchsize,patch,nClass]

If nClass is set to an value n > 0 the segmentations are decoded in n classes.

Details

Examples