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.
    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.
    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.

Examples