Skip to main content
. 2023 Jul 19;23(14):6533. doi: 10.3390/s23146533
Algorithm 2: AugmentTestSet(img, augmented_image)
//Augment test images from an original image
Input
(1) img: An original image in RGB channel
Output
(2) augmented_image: An augmented image
Begin
1. imgcopied  copy of img
2. randch random integer in the range 25 to 25
3. For each pixel p in imgcopied
4. pclip(p+randch, 0, 255)
5. augmented_image=imgcopied
6. End for
7. Return augmented_image
End