Skip to main content
. 2023 Jun 26;9(7):129. doi: 10.3390/jimaging9070129
Algorithm 1. Obtain the optimal parameters of the model
Input: The output of rain and mist model Brt^
1: for i = 1 to epoch do:
2:  for j = 1 to batchnum do:
3:   Convolution of Brt^ by Equations (10)–(13) to get Y1t, S1t, W1t, Q1t.
4:    Concat S1t, W1t, Q1t with Brt^ to get C1t.
5:    Convolve C1t with Equations (14)–(16) to get S2t, W2t, Q2t.
6:    O1t, S2t, W2t, Q2t and Brt^ are convolved by Equation (17) to obtain Xrt^.
7:    Update the intermediate parameters by loss functions Equations (18)–(19)
8:  end for
9. end for
Output: The learned optimal parameters.