Algorithm 1 Random Local Rotation |
-
1:
Input: The training dataset
-
2:
Output: The augmented training dataset
-
3:
Create a subset say by randomly selecting N images from
-
4:
Create an empty set say
-
5:
fordo
-
6:
Randomly generate centre and radius r within image I
-
7:
Form a circular area within image I with centre and radius r
-
8:
Randomly generate angle
-
9:
Form image by rotating the area within in image I with angle
-
10:
Add into
-
11:
end for
-
12:
Way 1:
-
13:
Way 2:
|