Skip to main content
. 2019 Dec 9;19(24):5430. doi: 10.3390/s19245430
Algorithm 1: Calculation of degree of blurring using image singular value decomposition (ISVD).
Input: RGB image I
Output: Blurred degree dISVD of image I
Initialisation: dISVD=0, num=0
1: Convert colour I to grayscale Igray
2: Calculate a singular value W=diag(δ1,δ2,,δn) with singular value decomposition on Igray
3: For δi in W
4:  If δiCthres
5:   num++
6:  End
7: End
8: Return blurred degree dISVD=num/n