|
Require:
, ,
|
| 1: |
initialize , , ; normalize
|
| 2: |
for
do
|
| 3: |
Sequential gradient descent |
| 4: |
for
do
|
| 5: |
;
|
| 6: |
if
then
|
| 7: |
for
do
|
| 8: |
|
| 9: |
end for
|
| 10: |
|
|
|
| 11: |
|
| 12: |
, where δ is chosen to be small |
| 13: |
else
|
| 14: |
Do the same update but save to
|
| 15: |
end if
|
| 16: |
end for
|
| 17: |
Filter with Gaussian filter to damp down high-frequency artifacts |
| 18: |
end for
|