| Algorithm 1: Salient Projection Region Location Procedure |
|
Input: image P, area A, ratio of width and height R, area ratio ranging from to , aspect ratio ranging from to ; |
| Output: selected region |
| 1: |
| 2: |
| 3: |
| 4: |
| 5: |
| 6: |
| 7: |
| 8: SRA is Spatial Relation-Aware Attention [13]. The weight matrix W with rows and columns can be obtained from the SRA [13]. Obtain the weights. |
| 9: for i In do |
| 10: for j In do |
| 11: |
| 12: if then |
| 13: |
| 14: end if |
| 15: end for |
| 16: end for |
| 17: Use the loop to find the and its |
| 18: return region |