Skip to main content
. 2022 Apr 6;9(4):161. doi: 10.3390/bioengineering9040161
Pseudocode 1: Data augmentation algorithm.
Input: (D: Dataset,
T: list of augmentation transformations)
Output:Daug: Augmented Dataset
Step 1: Randomly select an image from D
Step 2: Randomly select an augmentation transformation from T
Step 3: Randomly select the parameter 𝒫 for
Step 4: Apply the augmentation transformation on the image using the parameter 𝒫
Step 5: Save the image in the augmented dataset Daug