| Algorithm 1: Pseudo-code of the proposed zoom quality metric | ||
Input: Zoom photo I, over-completer DCT dictionary D, mean and variances of pristine MVG parameters , , weighting parameters , w and l. |
||
| 1 | Initialization: |
|
| 2 | Compute the photo gradient using Sobel operator; |
|
| 3 | Partition the photo I into non-overlapping 96 x 96 patches |
|
| 4 | The measurement of sharpness: |
|
| 5 | foreach do |
|
| 6 | Solve the sparse coding coefficients using the OMP algorithm [73]; |
|
| 7 | Calculate the patch variance ; |
|
| 8 | Sort and select the top patches according to the variance ; |
|
| 9 | end |
|
| 10 | Compute mean KL-divergence or energy: |
|
| 11 | Compute the residual gradient image: |
|
| 12 | Compute entropy of the residual: |
|
| 13 | The sharpness index: |
|
| 14 | The measurement of naturalness: |
|
| 15 | foreach do |
|
| 16 | Compute the MSCN map of I using (20) |
|
| 17 | Compute the GGD and AGGD parameters of each patch using (21), (23), (24) |
|
| 18 | end |
|
| 19 | Estimate the and through (25) |
|
| 20 |
The naturalness index: Output: Zoom quality metric |
|