QMRITools`
QMRITools`
DataToPatches
DataToPatches[data,patchSize]
creates the maximal number of patches with patchSize from data, where the patches have minimal overlap.
DataToPatches[data,patchSize,n]
gives n random patches from the maximal number of patches with patchSize from data, where the patches have minimal overlap.
Details
- The following options can be given:
-
PatchNumber 0 PatchNumber is an option for DataToPatches. Can be an integer value >= 0. The larger the number the more overlap the patches have. The minimal number of patches in each direction is calculated, and then for each dimension the given number is added. PatchPadding 0 PatchPadding is an option for DataToPatches. Can be an integer value >= 0. It padds the chosen patch size with the given number.