PrepareTrainingData

PrepareTrainingData[inFolder,outFolder]

prepares the data in de inFolder for training a neural network for segmentation and outputs in outFolder.

PrepareTrainingData[{labFolder,datFolder},outFolder]

does the same but the labels are stored in labFolder and data is stored in datFolder.

Details
Details and Options Details and Options
QMRITOOLS SYMBOL
QMRITools`
QMRITools`

PrepareTrainingData

PrepareTrainingData[inFolder,outFolder]

prepares the data in de inFolder for training a neural network for segmentation and outputs in outFolder.

PrepareTrainingData[{labFolder,datFolder},outFolder]

does the same but the labels are stored in labFolder and data is stored in datFolder.

Details

  • The following options can be given:
  • LabelTag"label"LabelTag is an option for PrepareTrainingData. It defines the tag used in the filenames of the label data.
    DataTag"data"DataTag is an option for PrepareTrainingData. It defines the tag used in the filenames of the data.
    OutputTag""OutputTag is an option for PrepareTrainingData. It defines the tag that will be added to the output training data.
    InputLabelsAutomaticInputLabels is an option for PrepareTrainingData. Can be set to a list of integers corresponding to the labels to be used from the given segmentation.
    OutputLabelsAutomaticOutputLabels is an option for PrepareTrainingData. Can be set to a list of integers. The used label number will be replaced by these numbers.
    TrainVoxelSizeAutomaticTrainVoxelSize is an option for PrepareTrainingData. It defines the voxel size of the training data. When set to Automatic the voxel size is that of the data.
    CleanUpSegmentationsTrueCleanUpSegmentations is an option for PrepareTrainingData. If set to True the segmentations are cleaned up by removing holes reducing to one volume and smoothing.
    TestRunFalseTestRun is an option for PrepareTrainingData. If set to True the data is not saved only analyzed.
    SegmentationsPerSliceAllSegmentationsPerSlice is an option for PrepareTrainingData. It defines how many segmentations should be present in a slice for it to be used in the training data.