DataToPatches[data,patchSize]
creates non-overlapping patches covering data with minimal overlap.
DataToPatches[data,patchSize,n]
creates patches with n additional overlap steps per dimension.
DataToPatches[data,patchSize,pts]
extracts patches at the given pre-computed ranges pts.
DataToPatches[data,pts]
extracts patches at ranges pts without resizing. Output is {patches, ranges} where ranges can be passed to PatchesToData.
DataToPatches
DataToPatches[data,patchSize]
creates non-overlapping patches covering data with minimal overlap.
DataToPatches[data,patchSize,n]
creates patches with n additional overlap steps per dimension.
DataToPatches[data,patchSize,pts]
extracts patches at the given pre-computed ranges pts.
DataToPatches[data,pts]
extracts patches at ranges pts without resizing. Output is {patches, ranges} where ranges can be passed to PatchesToData.
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 pads the chosen patch size with the given number.